Lines Matching refs:result

175     CURLcode result = Curl_conn_may_http3(data, conn);  in Curl_http_setup_conn()  local
176 if(result) in Curl_http_setup_conn()
177 return result; in Curl_http_setup_conn()
274 CURLcode result; in http_output_basic() local
298 result = Curl_base64_encode(out, strlen(out), &authorization, &size); in http_output_basic()
299 if(result) in http_output_basic()
303 result = CURLE_REMOTE_ACCESS_DENIED; in http_output_basic()
313 result = CURLE_OUT_OF_MEMORY; in http_output_basic()
319 return result; in http_output_basic()
334 CURLcode result = CURLE_OK; in http_output_bearer() local
342 result = CURLE_OUT_OF_MEMORY; in http_output_bearer()
347 return result; in http_output_bearer()
494 CURLcode result = CURLE_OK; in Curl_http_auth_act() local
532 result = http_perhapsrewind(data, conn); in Curl_http_auth_act()
533 if(result) in Curl_http_auth_act()
534 return result; in Curl_http_auth_act()
562 result = CURLE_HTTP_RETURNED_ERROR; in Curl_http_auth_act()
565 return result; in Curl_http_auth_act()
582 CURLcode result = CURLE_OK; in output_auth_headers() local
592 result = Curl_output_aws_sigv4(data, proxy); in output_auth_headers()
593 if(result) in output_auth_headers()
594 return result; in output_auth_headers()
601 result = Curl_output_negotiate(data, conn, proxy); in output_auth_headers()
602 if(result) in output_auth_headers()
603 return result; in output_auth_headers()
610 result = Curl_output_ntlm(data, proxy); in output_auth_headers()
611 if(result) in output_auth_headers()
612 return result; in output_auth_headers()
619 result = Curl_output_digest(data, in output_auth_headers()
623 if(result) in output_auth_headers()
624 return result; in output_auth_headers()
639 result = http_output_basic(data, proxy); in output_auth_headers()
640 if(result) in output_auth_headers()
641 return result; in output_auth_headers()
655 result = http_output_bearer(data); in output_auth_headers()
656 if(result) in output_auth_headers()
657 return result; in output_auth_headers()
685 return result; in output_auth_headers()
711 CURLcode result = CURLE_OK; in Curl_http_output_auth() local
753 result = output_auth_headers(data, conn, authproxy, request, path, TRUE); in Curl_http_output_auth()
754 if(result) in Curl_http_output_auth()
755 return result; in Curl_http_output_auth()
772 result = output_auth_headers(data, conn, authhost, request, path, FALSE); in Curl_http_output_auth()
787 return result; in Curl_http_output_auth()
884 CURLcode result = Curl_input_negotiate(data, conn, proxy, auth); in Curl_http_input_auth() local
885 if(!result) { in Curl_http_input_auth()
911 CURLcode result = Curl_input_ntlm(data, proxy, auth); in Curl_http_input_auth() local
912 if(!result) { in Curl_http_input_auth()
929 CURLcode result; in Curl_http_input_auth() local
938 result = Curl_input_digest(data, proxy, auth); in Curl_http_input_auth()
939 if(result) { in Curl_http_input_auth()
1377 CURLcode result; in Curl_dynhds_add_custom() local
1379 result = Curl_dynhds_add(hds, name, namelen, value, valuelen); in Curl_dynhds_add_custom()
1380 if(result) in Curl_dynhds_add_custom()
1381 return result; in Curl_dynhds_add_custom()
1486 CURLcode result = CURLE_OK; in Curl_add_custom_headers() local
1525 result = Curl_hyper_header(data, req, compare); in Curl_add_custom_headers()
1527 result = Curl_dyn_addf(req, "%s\r\n", compare); in Curl_add_custom_headers()
1532 if(result) in Curl_add_custom_headers()
1533 return result; in Curl_add_custom_headers()
1554 CURLcode result; in Curl_add_timecondition() local
1563 result = Curl_gmtime(data->set.timevalue, &keeptime); in Curl_add_timecondition()
1564 if(result) { in Curl_add_timecondition()
1566 return result; in Curl_add_timecondition()
1614 result = Curl_dyn_add(req, datestr); in Curl_add_timecondition()
1616 result = Curl_hyper_header(data, req, datestr); in Curl_add_timecondition()
1619 return result; in Curl_add_timecondition()
1780 CURLcode result = CURLE_OK; in Curl_http_target() local
1840 result = Curl_dyn_add(r, data->set.str[STRING_TARGET] ? in Curl_http_target()
1843 if(result) in Curl_http_target()
1844 return (result); in Curl_http_target()
1861 result = Curl_dyn_addf(r, ";type=%c", in Curl_http_target()
1863 if(result) in Curl_http_target()
1864 return result; in Curl_http_target()
1875 result = Curl_dyn_add(r, path); in Curl_http_target()
1876 if(result) in Curl_http_target()
1877 return result; in Curl_http_target()
1879 result = Curl_dyn_addf(r, "?%s", query); in Curl_http_target()
1882 return result; in Curl_http_target()
1888 CURLcode result; in set_post_reader() local
1905 result = Curl_getformdata(data, data->state.formp, data->set.httppost, in set_post_reader()
1907 if(result) { in set_post_reader()
1909 return result; in set_post_reader()
1940 result = Curl_mime_prepare_headers(data, data->state.mimepost, cthdr, in set_post_reader()
1942 if(result) in set_post_reader()
1943 return result; in set_post_reader()
1945 result = Curl_creader_set_mime(data, data->state.mimepost); in set_post_reader()
1946 if(result) in set_post_reader()
1947 return result; in set_post_reader()
1952 result = Curl_creader_set_null(data); in set_post_reader()
1955 return result; in set_post_reader()
1966 CURLcode result = CURLE_OK; in set_reader() local
1990 result = Curl_creader_set_null(data); in set_reader()
1994 result = Curl_creader_set_buf(data, data->set.postfields, in set_reader()
1997 result = Curl_creader_set_null(data); in set_reader()
2011 result = Curl_creader_set_fread(data, chunked ? -1 : postsize); in set_reader()
2013 return result; in set_reader()
2046 CURLcode result; in http_resume() local
2047 result = Curl_creader_resume_from(data, data->state.resume_from); in http_resume()
2048 if(result) { in http_resume()
2051 return result; in http_resume()
2062 CURLcode result = CURLE_OK; in Curl_http_req_set_reader() local
2065 result = set_reader(data, httpreq); in Curl_http_req_set_reader()
2066 if(result) in Curl_http_req_set_reader()
2067 return result; in Curl_http_req_set_reader()
2069 result = http_resume(data, httpreq); in Curl_http_req_set_reader()
2070 if(result) in Curl_http_req_set_reader()
2071 return result; in Curl_http_req_set_reader()
2110 return result; in Curl_http_req_set_reader()
2116 CURLcode result; in addexpect() local
2141 result = Curl_dyn_addn(r, STRCONST("Expect: 100-continue\r\n")); in addexpect()
2142 if(result) in addexpect()
2143 return result; in addexpect()
2153 CURLcode result = CURLE_OK; in Curl_http_req_complete() local
2160 result = Curl_httpchunk_add_reader(data); in Curl_http_req_complete()
2161 if(result) in Curl_http_req_complete()
2162 return result; in Curl_http_req_complete()
2186 result = Curl_dyn_addf(r, "Content-Length: %" FMT_OFF_T "\r\n", in Curl_http_req_complete()
2189 if(result) in Curl_http_req_complete()
2199 result = Curl_dyn_addf(r, "%s\r\n", hdr->data); in Curl_http_req_complete()
2200 if(result) in Curl_http_req_complete()
2207 result = Curl_dyn_addn(r, STRCONST("Content-Type: application/" in Curl_http_req_complete()
2209 if(result) in Curl_http_req_complete()
2213 result = addexpect(data, r, &announced_exp100); in Curl_http_req_complete()
2214 if(result) in Curl_http_req_complete()
2222 result = Curl_dyn_addn(r, STRCONST("\r\n")); in Curl_http_req_complete()
2223 if(!result) { in Curl_http_req_complete()
2226 result = http_exp100_add_reader(data); in Curl_http_req_complete()
2230 if(!result) { in Curl_http_req_complete()
2234 return result; in Curl_http_req_complete()
2243 CURLcode result = CURLE_OK; in Curl_http_cookies() local
2278 result = Curl_dyn_addn(r, STRCONST("Cookie: ")); in Curl_http_cookies()
2279 if(result) in Curl_http_cookies()
2289 result = Curl_dyn_addf(r, "%s%s=%s", count ? "; " : "", in Curl_http_cookies()
2291 if(result) in Curl_http_cookies()
2299 if(addcookies && !result && !linecap) { in Curl_http_cookies()
2301 result = Curl_dyn_addn(r, STRCONST("Cookie: ")); in Curl_http_cookies()
2302 if(!result) { in Curl_http_cookies()
2303 result = Curl_dyn_addf(r, "%s%s", count ? "; " : "", addcookies); in Curl_http_cookies()
2307 if(count && !result) in Curl_http_cookies()
2308 result = Curl_dyn_addn(r, STRCONST("\r\n")); in Curl_http_cookies()
2310 if(result) in Curl_http_cookies()
2311 return result; in Curl_http_cookies()
2313 return result; in Curl_http_cookies()
2478 CURLcode result = CURLE_OK; in Curl_http() local
2501 result = Curl_http2_switch(data, conn, FIRSTSOCKET); in Curl_http()
2502 if(result) in Curl_http()
2516 result = Curl_http2_switch(data, conn, FIRSTSOCKET); in Curl_http()
2517 if(result) in Curl_http()
2526 result = Curl_headers_init(data); in Curl_http()
2527 if(result) in Curl_http()
2530 result = Curl_http_host(data, conn); in Curl_http()
2531 if(result) in Curl_http()
2534 result = Curl_http_useragent(data); in Curl_http()
2535 if(result) in Curl_http()
2548 result = Curl_http_output_auth(data, conn, request, httpreq, in Curl_http()
2551 if(result) in Curl_http()
2575 result = Curl_transferencode(data); in Curl_http()
2576 if(result) in Curl_http()
2580 result = Curl_http_req_set_reader(data, httpreq, &te); in Curl_http()
2581 if(result) in Curl_http()
2587 result = Curl_http_range(data, httpreq); in Curl_http()
2588 if(result) in Curl_http()
2602 result = Curl_dyn_addf(&req, "%s ", request); in Curl_http()
2603 if(!result) in Curl_http()
2604 result = Curl_http_target(data, conn, &req); in Curl_http()
2605 if(result) { in Curl_http()
2620 result = in Curl_http()
2681 if(result) { in Curl_http()
2691 result = Curl_http2_request_upgrade(&req, data); in Curl_http()
2692 if(result) { in Curl_http()
2694 return result; in Curl_http()
2698 result = Curl_http_cookies(data, conn, &req); in Curl_http()
2700 if(!result && conn->handler->protocol&(CURLPROTO_WS|CURLPROTO_WSS)) in Curl_http()
2701 result = Curl_ws_request(data, &req); in Curl_http()
2703 if(!result) in Curl_http()
2704 result = Curl_add_timecondition(data, &req); in Curl_http()
2705 if(!result) in Curl_http()
2706 result = Curl_add_custom_headers(data, FALSE, &req); in Curl_http()
2708 if(!result) { in Curl_http()
2710 result = Curl_http_req_complete(data, &req, httpreq); in Curl_http()
2711 if(!result) in Curl_http()
2712 result = Curl_req_send(data, &req); in Curl_http()
2715 if(result) in Curl_http()
2724 if(CURLE_TOO_LARGE == result) in Curl_http()
2726 return result; in Curl_http()
2777 statusline result = STATUS_BAD; in checkrtspprefix() local
2781 result = onmatch; in checkrtspprefix()
2783 return result; in checkrtspprefix()
2823 CURLcode result; in Curl_http_header() local
2990 result = http_perhapsrewind(data, conn); in Curl_http_header()
2991 if(result) in Curl_http_header()
2992 return result; in Curl_http_header()
3032 result = Curl_http_input_auth(data, TRUE, auth); in Curl_http_header()
3034 return result; in Curl_http_header()
3139 result = Curl_build_unencoding_stack(data, v, TRUE); in Curl_http_header()
3140 if(result) in Curl_http_header()
3141 return result; in Curl_http_header()
3163 result = Curl_http_input_auth(data, FALSE, auth); in Curl_http_header()
3165 return result; in Curl_http_header()
3171 result = Curl_rtsp_parseheader(data, hd); in Curl_http_header()
3172 if(result) in Curl_http_header()
3173 return result; in Curl_http_header()
3354 CURLcode result; in http_write_header() local
3364 result = Curl_client_write(data, writetype, hd, hdlen); in http_write_header()
3365 if(result) in http_write_header()
3366 return result; in http_write_header()
3368 result = Curl_bump_headersize(data, hdlen, FALSE); in http_write_header()
3369 if(result) in http_write_header()
3370 return result; in http_write_header()
3375 return result; in http_write_header()
3384 CURLcode result = CURLE_OK; in http_on_response() local
3400 result = http_write_header(data, last_hd, last_hd_len); in http_on_response()
3402 if(result) in http_on_response()
3408 result = CURLE_UNSUPPORTED_PROTOCOL; in http_on_response()
3432 result = CURLE_WEIRD_SERVER_REPLY; in http_on_response()
3445 result = Curl_http2_upgrade(data, conn, FIRSTSOCKET, buf, blen); in http_on_response()
3446 if(result) in http_on_response()
3454 result = Curl_ws_accept(data, buf, blen); in http_on_response()
3455 if(result) in http_on_response()
3539 result = CURLE_HTTP_RETURNED_ERROR; in http_on_response()
3548 result = CURLE_HTTP_RETURNED_ERROR; in http_on_response()
3555 result = Curl_http_auth_act(data); in http_on_response()
3556 if(result) in http_on_response()
3593 result = http_perhapsrewind(data, conn); in http_on_response()
3594 if(result) in http_on_response()
3609 result = Curl_req_abort_sending(data); in http_on_response()
3610 if(result) in http_on_response()
3646 result = Curl_http_firstwrite(data); in http_on_response()
3648 if(!result) in http_on_response()
3652 result = Curl_http_size(data); in http_on_response()
3658 if(!result) in http_on_response()
3659 result = r2; in http_on_response()
3661 return result; in http_on_response()
3669 CURLcode result = CURLE_OK; in http_rw_hd() local
3680 result = Curl_dyn_addn(&last_header, hd, hdlen); in http_rw_hd()
3681 if(result) in http_rw_hd()
3682 return result; in http_rw_hd()
3689 result = http_on_response(data, Curl_dyn_ptr(&last_header), in http_rw_hd()
3694 return result; in http_rw_hd()
3805 result = Curl_http_statusline(data, data->conn); in http_rw_hd()
3806 if(result) in http_rw_hd()
3807 return result; in http_rw_hd()
3816 result = verify_header(data, hd, hdlen); in http_rw_hd()
3817 if(result) in http_rw_hd()
3818 return result; in http_rw_hd()
3820 result = Curl_http_header(data, hd, hdlen); in http_rw_hd()
3821 if(result) in http_rw_hd()
3822 return result; in http_rw_hd()
3831 result = Curl_client_write(data, writetype, hd, hdlen); in http_rw_hd()
3832 if(result) in http_rw_hd()
3833 return result; in http_rw_hd()
3835 result = Curl_bump_headersize(data, hdlen, FALSE); in http_rw_hd()
3836 if(result) in http_rw_hd()
3837 return result; in http_rw_hd()
3850 CURLcode result = CURLE_OK; in http_parse_headers() local
3864 result = Curl_dyn_addn(&data->state.headerb, buf, blen); in http_parse_headers()
3865 if(result) in http_parse_headers()
3866 return result; in http_parse_headers()
3897 result = Curl_dyn_addn(&data->state.headerb, buf, consumed); in http_parse_headers()
3898 if(result) in http_parse_headers()
3899 return result; in http_parse_headers()
3930 result = http_rw_hd(data, Curl_dyn_ptr(&data->state.headerb), in http_parse_headers()
3942 if(result) in http_parse_headers()
3943 return result; in http_parse_headers()
3960 CURLcode result; in Curl_http_write_resp_hd() local
3964 result = http_rw_hd(data, hd, hdlen, &tmp, 0, &consumed); in Curl_http_write_resp_hd()
3965 if(!result && is_eos) { in Curl_http_write_resp_hd()
3966 result = Curl_client_write(data, (CLIENTWRITE_BODY|CLIENTWRITE_EOS), in Curl_http_write_resp_hd()
3969 return result; in Curl_http_write_resp_hd()
3985 CURLcode result; in Curl_http_write_resp_hds() local
3987 result = http_parse_headers(data, buf, blen, pconsumed); in Curl_http_write_resp_hds()
3988 if(!result && !data->req.header) { in Curl_http_write_resp_hds()
3993 result = Curl_client_write(data, CLIENTWRITE_BODY, in Curl_http_write_resp_hds()
3999 return result; in Curl_http_write_resp_hds()
4007 CURLcode result; in Curl_http_write_resp() local
4011 result = Curl_http_write_resp_hds(data, buf, blen, &consumed); in Curl_http_write_resp()
4012 if(result || data->req.done) in Curl_http_write_resp()
4026 result = Curl_client_write(data, flags, (char *)buf, blen); in Curl_http_write_resp()
4029 return result; in Curl_http_write_resp()
4035 CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT; in Curl_http_decode_status() local
4051 result = CURLE_OK; in Curl_http_decode_status()
4053 *pstatus = result ? -1 : status; in Curl_http_decode_status()
4054 return result; in Curl_http_decode_status()
4064 CURLcode result = CURLE_OUT_OF_MEMORY; in Curl_http_req_make() local
4091 result = CURLE_OK; in Curl_http_req_make()
4094 if(result && req) in Curl_http_req_make()
4096 *preq = result ? NULL : req; in Curl_http_req_make()
4097 return result; in Curl_http_req_make()
4105 CURLcode result = CURLE_URL_MALFORMAT; in req_assign_url_authority() local
4115 result = CURLE_OK; in req_assign_url_authority()
4132 result = Curl_dyn_add(&buf, user); in req_assign_url_authority()
4133 if(result) in req_assign_url_authority()
4136 result = Curl_dyn_addf(&buf, ":%s", pass); in req_assign_url_authority()
4137 if(result) in req_assign_url_authority()
4140 result = Curl_dyn_add(&buf, "@"); in req_assign_url_authority()
4141 if(result) in req_assign_url_authority()
4144 result = Curl_dyn_add(&buf, host); in req_assign_url_authority()
4145 if(result) in req_assign_url_authority()
4148 result = Curl_dyn_addf(&buf, ":%s", port); in req_assign_url_authority()
4149 if(result) in req_assign_url_authority()
4155 result = CURLE_OK; in req_assign_url_authority()
4163 return result; in req_assign_url_authority()
4171 CURLcode result = CURLE_URL_MALFORMAT; in req_assign_url_path() local
4192 result = Curl_dyn_add(&buf, path); in req_assign_url_path()
4193 if(result) in req_assign_url_path()
4197 result = Curl_dyn_addf(&buf, "?%s", query); in req_assign_url_path()
4198 if(result) in req_assign_url_path()
4205 result = CURLE_OK; in req_assign_url_path()
4211 return result; in req_assign_url_path()
4219 CURLcode result = CURLE_OUT_OF_MEMORY; in Curl_http_req_make2() local
4240 result = req_assign_url_authority(req, url); in Curl_http_req_make2()
4241 if(result) in Curl_http_req_make2()
4243 result = req_assign_url_path(req, url); in Curl_http_req_make2()
4244 if(result) in Curl_http_req_make2()
4249 result = CURLE_OK; in Curl_http_req_make2()
4252 if(result && req) in Curl_http_req_make2()
4254 *preq = result ? NULL : req; in Curl_http_req_make2()
4255 return result; in Curl_http_req_make2()
4303 CURLcode result; in Curl_http_req_to_h2() local
4336 result = Curl_dynhds_add(h2_headers, STRCONST(HTTP_PSEUDO_METHOD), in Curl_http_req_to_h2()
4338 if(!result && scheme) { in Curl_http_req_to_h2()
4339 result = Curl_dynhds_add(h2_headers, STRCONST(HTTP_PSEUDO_SCHEME), in Curl_http_req_to_h2()
4342 if(!result && authority) { in Curl_http_req_to_h2()
4343 result = Curl_dynhds_add(h2_headers, STRCONST(HTTP_PSEUDO_AUTHORITY), in Curl_http_req_to_h2()
4346 if(!result && req->path) { in Curl_http_req_to_h2()
4347 result = Curl_dynhds_add(h2_headers, STRCONST(HTTP_PSEUDO_PATH), in Curl_http_req_to_h2()
4350 for(i = 0; !result && i < Curl_dynhds_count(&req->headers); ++i) { in Curl_http_req_to_h2()
4353 result = Curl_dynhds_add(h2_headers, e->name, e->namelen, in Curl_http_req_to_h2()
4358 return result; in Curl_http_req_to_h2()
4366 CURLcode result = CURLE_OUT_OF_MEMORY; in Curl_http_resp_make() local
4380 result = CURLE_OK; in Curl_http_resp_make()
4383 if(result && resp) in Curl_http_resp_make()
4385 *presp = result ? NULL : resp; in Curl_http_resp_make()
4386 return result; in Curl_http_resp_make()
4503 CURLcode result; in http_exp100_add_reader() local
4505 result = Curl_creader_create(&reader, data, &cr_exp100, in http_exp100_add_reader()
4507 if(!result) in http_exp100_add_reader()
4508 result = Curl_creader_add(data, reader); in http_exp100_add_reader()
4509 if(!result) { in http_exp100_add_reader()
4514 if(result && reader) in http_exp100_add_reader()
4516 return result; in http_exp100_add_reader()