Lines Matching refs:result
269 CURLcode result = CURLE_OK;
343 return result;
373 CURLcode result,
383 return result;
399 if(!config->synthetic_error && result &&
402 fprintf(tool_stderr, "curl: (%d) %s\n", result,
403 (msg && msg[0]) ? msg : curl_easy_strerror(result));
404 if(result == CURLE_PEER_FAILED_VERIFICATION)
416 result = CURLE_HTTP_RETURNED_ERROR;
420 if(!result && config->xattr && outs->fopened && outs->stream) {
427 if(!result && !outs->stream && !outs->bytes) {
436 result = CURLE_WRITE_ERROR;
442 if(!result && rc) {
444 result = CURLE_WRITE_ERROR;
471 if((CURLE_OPERATION_TIMEDOUT == result) ||
472 (CURLE_COULDNT_RESOLVE_HOST == result) ||
473 (CURLE_COULDNT_RESOLVE_PROXY == result) ||
474 (CURLE_FTP_ACCEPT_TIMEOUT == result))
478 (CURLE_COULDNT_CONNECT == result)) {
484 else if((CURLE_OK == result) ||
486 (CURLE_HTTP_RETURNED_ERROR == result))) {
519 else if(result) {
535 if(result && !retry && config->retry_all_errors)
634 if(!result && rc) {
636 result = CURLE_WRITE_ERROR;
637 errorf(config->global, "curl: (%d) Failed writing body", result);
639 if(result && config->rm_partial) {
655 if(!result && config->remote_time && outs->s_isreg && outs->filename) {
662 /* Write the --write-out data before cleanup but after result is final */
664 ourWriteOut(config, per, result);
688 return result;
698 CURLcode result = CURLE_OK;
713 result = ipfs_url_rewrite(uh, schemep, url, config);
719 if(result)
732 return result;
742 CURLcode result = CURLE_OK;
760 result = CURLE_FAILED_INIT;
766 result = CURLE_FAILED_INIT;
768 if(result) {
770 return result;
808 result = CURLE_OUT_OF_MEMORY;
817 result = glob_url(&inglob, infiles, &state->infilenum,
820 if(result)
833 result = glob_next_url(&state->uploadfile, inglob);
834 if(result == CURLE_OUT_OF_MEMORY)
841 result = CURLE_OUT_OF_MEMORY;
845 if(result)
853 result = glob_url(&state->urls, urlnode->url, &state->urlnum,
856 if(result)
892 result = CURLE_READ_ERROR;
909 result = CURLE_OUT_OF_MEMORY;
920 result = CURLE_OUT_OF_MEMORY;
951 result = add_per_transfer(&per);
953 result = CURLE_OUT_OF_MEMORY;
954 if(result) {
965 result = CURLE_OUT_OF_MEMORY;
971 result = CURLE_FAILED_INIT;
1008 result = CURLE_WRITE_ERROR;
1036 result = glob_next_url(&per->this_url, state->urls);
1037 if(result)
1043 result = CURLE_OUT_OF_MEMORY;
1055 result = CURLE_OUT_OF_MEMORY;
1064 * We have specified a file name to store the result in, or we have
1070 result = get_url_file_name(&per->outfile, per->this_url);
1071 if(result) {
1078 result = CURLE_WRITE_ERROR;
1085 result = glob_match_url(&per->outfile, storefile, state->urls);
1087 if(result) {
1094 result = CURLE_WRITE_ERROR;
1102 result = CURLE_WRITE_ERROR;
1112 result = create_dir_hierarchy(per->outfile, global);
1114 if(result)
1149 result = CURLE_WRITE_ERROR;
1167 result = add_file_name_to_url(per->curl, &per->this_url,
1169 if(result)
1232 result = urlerr_cvt(uerr);
1234 "failed to set query", result);
1244 result = urlerr_cvt(uerr);
1251 if(result)
1268 result = curl_easy_setopt(curl, CURLOPT_SHARE, share);
1269 if(result)
1272 /* result is only used when for ipfs and ipns, ignored otherwise */
1273 result = url_proto(&per->this_url, config, &use_proto);
1274 if(result && (use_proto == proto_ipfs || use_proto == proto_ipns))
1282 result = curl_easy_setopt(curl, CURLOPT_QUICK_EXIT, 1L);
1283 if(result)
1344 if(config->proxy && result) {
1347 result = CURLE_NOT_BUILT_IN;
1418 result = CURLE_FAILED_INIT;
1433 result = CURLE_FAILED_INIT;
1436 result = tool2curlmime(curl, config->mimeroot, &config->mimepost);
1437 if(!result)
1444 if(result)
1506 if(result) {
1508 return result;
1559 result = res_setopt_str(curl, CURLOPT_CAPATH, config->capath);
1560 if(result == CURLE_NOT_BUILT_IN) {
1565 else if(result)
1571 result = res_setopt_str(curl, CURLOPT_PROXY_CAPATH,
1575 if((result == CURLE_NOT_BUILT_IN) ||
1576 (result == CURLE_UNKNOWN_OPTION)) {
1582 else if(result)
1809 result = res_setopt_str(curl, CURLOPT_SSH_KNOWNHOSTS, known);
1811 if(result == CURLE_UNKNOWN_OPTION)
1813 result = CURLE_OK;
1814 if(result)
1840 result = curlx_dyn_addf(&cookies, "%s", cl->data);
1842 result = curlx_dyn_addf(&cookies, ";%s", cl->data);
1844 if(result) {
1949 result = res_setopt_str(curl, CURLOPT_SSLENGINE, config->engine);
1950 if(result)
2232 if(!*added || result) {
2236 return result;
2253 CURLcode result = CURLE_OK;
2260 result = create_transfer(global, share, addedp);
2261 if(result)
2262 return result;
2277 result = pre_transfer(global, per);
2278 if(result)
2279 return result;
2297 result = CURLE_OUT_OF_MEMORY;
2300 if(!result)
2301 result = create_transfer(global, share, &getadded);
2302 if(result) {
2304 return result;
2322 CURLcode result = CURLE_OK;
2337 result = add_parallel_transfers(global, multi, share,
2339 if(result) {
2341 return result;
2377 CURLcode tres = msg->data.result;
2397 /* result receives this transfer's error unless the transfer was
2399 if(tres && (!ended->abort || !result))
2400 result = tres;
2401 if(is_fatal_error(result) || (result && global->fail_early))
2426 result = tres;
2431 if(is_fatal_error(result) || (result && global->fail_early))
2440 result = (mcode == CURLM_OUT_OF_MEMORY) ? CURLE_OUT_OF_MEMORY :
2448 return result;
2455 CURLcode result = CURLE_OK;
2459 result = create_transfer(global, share, &added);
2460 if(result)
2461 return result;
2471 result = pre_transfer(global, per);
2472 if(result)
2476 result = easysrc_perform();
2477 if(result)
2483 result = curl_easy_perform_ev(per->curl);
2486 result = curl_easy_perform(per->curl);
2488 returncode = post_per_transfer(global, per, result, &retry, &delay_ms);
2499 result = create_transfer(global, share, &added);
2500 if(result) {
2501 returncode = result;
2525 result = returncode;
2527 if(result)
2530 return result;
2539 CURLcode result = CURLE_OK;
2569 result = curl_easy_getinfo(curltls, CURLINFO_TLS_SSL_PTR,
2571 if(result) {
2573 return result;
2627 result = FindWin32CACert(config, tls_backend_info->backend,
2635 if(!result)
2636 result = single_transfer(global, config, share, capath_from_env, added);
2638 return result;
2649 CURLcode result = CURLE_OK;
2652 result = transfer_per_config(global, global->current, share, added);
2653 if(!result && !*added) {
2660 return result;
2665 CURLcode result)
2673 if(!result) {
2675 result = parallel_transfers(global, share);
2677 result = serial_transfers(global, share);
2684 CURLcode result2 = post_per_transfer(global, per, result, &retry, &delay);
2685 if(!result)
2687 result = result2;
2700 return result;
2705 CURLcode result = CURLE_OK;
2723 result = CURLE_FAILED_INIT;
2729 if(!result) {
2733 result = CURLE_OK;
2748 result = CURLE_UNSUPPORTED_PROTOCOL;
2750 result = CURLE_READ_ERROR;
2752 result = CURLE_FAILED_INIT;
2757 result = easysrc_init();
2761 if(!result) {
2770 result = CURLE_OUT_OF_MEMORY;
2773 if(!result) {
2784 result = get_args(operation, count++);
2787 } while(!result && operation);
2793 result = run_all_transfers(global, share, result);
2812 return result;