Lines Matching refs:result

222   CURLcode result;  in start_CONNECT()  local
229 result = Curl_http_proxy_create_CONNECT(&req, cf, data, 1); in start_CONNECT()
230 if(result) in start_CONNECT()
240 result = Curl_h1_req_write_head(req, http_minor, &ts->request_data); in start_CONNECT()
241 if(!result) in start_CONNECT()
242 result = Curl_creader_set_null(data); in start_CONNECT()
245 if(result) in start_CONNECT()
249 return result; in start_CONNECT()
260 CURLcode result = CURLE_OK; in send_CONNECT() local
269 nwritten = cf->next->cft->do_send(cf->next, data, buf, blen, FALSE, &result); in send_CONNECT()
271 if(result == CURLE_AGAIN) { in send_CONNECT()
272 result = CURLE_OK; in send_CONNECT()
282 if(result) in send_CONNECT()
284 *done = (!result && (ts->nsent >= request_len)); in send_CONNECT()
285 return result; in send_CONNECT()
293 CURLcode result = CURLE_OK; in on_resp_header() local
308 result = Curl_http_input_auth(data, proxy, auth); in on_resp_header()
312 if(result) in on_resp_header()
313 return result; in on_resp_header()
361 return result; in on_resp_header()
369 CURLcode result = CURLE_OK; in recv_CONNECT_resp() local
390 result = Curl_conn_recv(data, cf->sockindex, &byte, 1, &nread); in recv_CONNECT_resp()
391 if(result == CURLE_AGAIN) in recv_CONNECT_resp()
398 if(result) { in recv_CONNECT_resp()
438 result = Curl_httpchunk_read(data, &ts->ch, &byte, 1, &consumed); in recv_CONNECT_resp()
439 if(result) in recv_CONNECT_resp()
440 return result; in recv_CONNECT_resp()
469 result = Curl_client_write(data, writetype, linep, line_len); in recv_CONNECT_resp()
470 if(result) in recv_CONNECT_resp()
471 return result; in recv_CONNECT_resp()
473 result = Curl_bump_headersize(data, line_len, TRUE); in recv_CONNECT_resp()
474 if(result) in recv_CONNECT_resp()
475 return result; in recv_CONNECT_resp()
514 result = on_resp_header(cf, data, ts, linep); in recv_CONNECT_resp()
515 if(result) in recv_CONNECT_resp()
516 return result; in recv_CONNECT_resp()
522 result = CURLE_RECV_ERROR; in recv_CONNECT_resp()
524 if(!result && *done && data->info.httpproxycode/100 != 2) { in recv_CONNECT_resp()
527 result = Curl_http_auth_act(data); in recv_CONNECT_resp()
529 return result; in recv_CONNECT_resp()
542 CURLcode result; in CONNECT_host() local
546 result = Curl_http_proxy_get_destination(cf, &hostname, &port, &ipv6_ip); in CONNECT_host()
547 if(result) in CONNECT_host()
548 return result; in CONNECT_host()
586 CURLcode result = CURLE_OUT_OF_MEMORY; in start_CONNECT() local
592 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
610 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
618 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
631 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
639 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
647 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
657 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
663 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
672 result = CONNECT_host(cf, data, &authority, &host_header); in start_CONNECT()
673 if(result) in start_CONNECT()
681 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
687 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
694 result = Curl_http_output_auth(data, conn, "CONNECT", HTTPREQ_GET, in start_CONNECT()
696 if(result) in start_CONNECT()
705 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
712 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
716 result = Curl_hyper_header(data, headers, host_header); in start_CONNECT()
717 if(result) in start_CONNECT()
723 result = Curl_hyper_header(data, headers, in start_CONNECT()
725 if(result) in start_CONNECT()
733 result = Curl_dyn_addf(&ua, "User-Agent: %s\r\n", in start_CONNECT()
735 if(result) in start_CONNECT()
737 result = Curl_hyper_header(data, headers, Curl_dyn_ptr(&ua)); in start_CONNECT()
738 if(result) in start_CONNECT()
744 result = Curl_hyper_header(data, headers, in start_CONNECT()
746 if(result) in start_CONNECT()
750 result = Curl_add_custom_headers(data, TRUE, headers); in start_CONNECT()
751 if(result) in start_CONNECT()
754 result = Curl_creader_set_null(data); in start_CONNECT()
755 if(result) in start_CONNECT()
761 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
768 result = CURLE_OUT_OF_MEMORY; in start_CONNECT()
790 return result; in start_CONNECT()
802 CURLcode result = CURLE_OK; in send_CONNECT() local
815 result = CURLE_OUT_OF_MEMORY; in send_CONNECT()
821 *done = (result == CURLE_OK); in send_CONNECT()
828 return result; in send_CONNECT()
837 CURLcode result; in recv_CONNECT_resp() local
841 result = Curl_hyper_stream(data, cf->conn, &didwhat, in recv_CONNECT_resp()
844 if(result || !*done) in recv_CONNECT_resp()
845 return result; in recv_CONNECT_resp()
858 return result; in recv_CONNECT_resp()
868 CURLcode result; in H1_CONNECT() local
882 result = CURLE_OPERATION_TIMEDOUT; in H1_CONNECT()
890 result = start_CONNECT(cf, data, ts); in H1_CONNECT()
891 if(result) in H1_CONNECT()
899 result = send_CONNECT(cf, data, ts, &done); in H1_CONNECT()
900 if(result || !done) in H1_CONNECT()
908 result = recv_CONNECT_resp(cf, data, ts, &done); in H1_CONNECT()
910 result = CURLE_ABORTED_BY_CALLBACK; in H1_CONNECT()
914 if(result || !done) in H1_CONNECT()
938 result = Curl_conn_cf_connect(cf->next, data, FALSE, &done); in H1_CONNECT()
968 result = CURLE_OK; in H1_CONNECT()
971 if(result) in H1_CONNECT()
973 return result; in H1_CONNECT()
980 CURLcode result; in cf_h1_proxy_connect() local
989 result = cf->next->cft->do_connect(cf->next, data, blocking, done); in cf_h1_proxy_connect()
990 if(result || !*done) in cf_h1_proxy_connect()
991 return result; in cf_h1_proxy_connect()
995 result = tunnel_init(cf, data, &ts); in cf_h1_proxy_connect()
996 if(result) in cf_h1_proxy_connect()
997 return result; in cf_h1_proxy_connect()
1004 result = H1_CONNECT(cf, data, ts); in cf_h1_proxy_connect()
1005 if(result) in cf_h1_proxy_connect()
1010 *done = (result == CURLE_OK) && tunnel_is_established(cf->ctx); in cf_h1_proxy_connect()
1021 return result; in cf_h1_proxy_connect()
1094 CURLcode result; in Curl_cf_h1_proxy_insert_after() local
1097 result = Curl_cf_create(&cf, &Curl_cft_h1_proxy, NULL); in Curl_cf_h1_proxy_insert_after()
1098 if(!result) in Curl_cf_h1_proxy_insert_after()
1100 return result; in Curl_cf_h1_proxy_insert_after()