Lines Matching refs:req
94 struct httpreq *req = NULL; in Curl_http_proxy_create_CONNECT() local
107 result = Curl_http_req_make(&req, "CONNECT", sizeof("CONNECT")-1, 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()
115 req->authority, TRUE); in Curl_http_proxy_create_CONNECT()
122 result = Curl_dynhds_cadd(&req->headers, "Host", authority); in Curl_http_proxy_create_CONNECT()
128 result = Curl_dynhds_h1_cadd_line(&req->headers, in Curl_http_proxy_create_CONNECT()
136 result = Curl_dynhds_cadd(&req->headers, "User-Agent", in Curl_http_proxy_create_CONNECT()
144 result = Curl_dynhds_cadd(&req->headers, "Proxy-Connection", "Keep-Alive"); 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()
153 Curl_http_req_free(req); in Curl_http_proxy_create_CONNECT()
154 req = NULL; in Curl_http_proxy_create_CONNECT()
157 *preq = req; in Curl_http_proxy_create_CONNECT()