Lines Matching refs:result
93 CURLcode result; in Curl_http_proxy_create_CONNECT() local
96 result = Curl_http_proxy_get_destination(cf, &hostname, &port, &ipv6_ip); in Curl_http_proxy_create_CONNECT()
97 if(result) in Curl_http_proxy_create_CONNECT()
103 result = CURLE_OUT_OF_MEMORY; in Curl_http_proxy_create_CONNECT()
107 result = Curl_http_req_make(&req, "CONNECT", sizeof("CONNECT")-1, in Curl_http_proxy_create_CONNECT()
110 if(result) in Curl_http_proxy_create_CONNECT()
114 result = Curl_http_output_auth(data, cf->conn, req->method, HTTPREQ_GET, in Curl_http_proxy_create_CONNECT()
116 if(result) in Curl_http_proxy_create_CONNECT()
122 result = Curl_dynhds_cadd(&req->headers, "Host", authority); in Curl_http_proxy_create_CONNECT()
123 if(result) in Curl_http_proxy_create_CONNECT()
128 result = Curl_dynhds_h1_cadd_line(&req->headers, in Curl_http_proxy_create_CONNECT()
130 if(result) in Curl_http_proxy_create_CONNECT()
136 result = Curl_dynhds_cadd(&req->headers, "User-Agent", in Curl_http_proxy_create_CONNECT()
138 if(result) in Curl_http_proxy_create_CONNECT()
144 result = Curl_dynhds_cadd(&req->headers, "Proxy-Connection", "Keep-Alive"); in Curl_http_proxy_create_CONNECT()
145 if(result) in Curl_http_proxy_create_CONNECT()
149 result = Curl_dynhds_add_custom(data, TRUE, &req->headers); in Curl_http_proxy_create_CONNECT()
152 if(result && req) { in Curl_http_proxy_create_CONNECT()
158 return result; in Curl_http_proxy_create_CONNECT()
172 CURLcode result; in http_proxy_cf_connect() local
181 result = cf->next->cft->do_connect(cf->next, data, blocking, done); in http_proxy_cf_connect()
182 if(result || !*done) in http_proxy_cf_connect()
183 return result; in http_proxy_cf_connect()
199 result = Curl_cf_h1_proxy_insert_after(cf, data); in http_proxy_cf_connect()
200 if(result) in http_proxy_cf_connect()
208 result = Curl_cf_h2_proxy_insert_after(cf, data); in http_proxy_cf_connect()
209 if(result) in http_proxy_cf_connect()
216 result = CURLE_COULDNT_CONNECT; in http_proxy_cf_connect()
231 result = CURLE_OK; in http_proxy_cf_connect()
235 if(!result) { in http_proxy_cf_connect()
239 return result; in http_proxy_cf_connect()
318 CURLcode result; in Curl_cf_http_proxy_insert_after() local
323 result = CURLE_OUT_OF_MEMORY; in Curl_cf_http_proxy_insert_after()
326 result = Curl_cf_create(&cf, &Curl_cft_http_proxy, ctx); in Curl_cf_http_proxy_insert_after()
327 if(result) in Curl_cf_http_proxy_insert_after()
334 return result; in Curl_cf_http_proxy_insert_after()