Lines Matching defs:proxy
182 * checkProxyHeaders() checks the linked list of custom proxy headers
183 * if proxy headers are not available, then it will lookup into http header
187 * know if this is a proxy request or not, as it then might check a different
197 for(head = (conn->bits.proxy && data->set.sep_headers) ?
262 * http_output_basic() sets up an Authorization: header (or the proxy version)
267 static CURLcode http_output_basic(struct connectdata *conn, bool proxy)
278 if(proxy) {
304 proxy ? "Proxy-" : "",
617 * and whether or not it is to a proxy.
624 bool proxy)
640 result = Curl_output_negotiate(conn, proxy);
649 result = Curl_output_ntlm(conn, proxy);
658 result = Curl_output_ntlm_wb(conn, proxy);
668 proxy,
678 if((proxy && conn->bits.proxy_user_passwd &&
679 !Curl_checkProxyheaders(conn, "Proxy-authorization")) ||
680 (!proxy && conn->bits.user_passwd &&
683 result = http_output_basic(conn, proxy);
694 if((!proxy && conn->oauth_bearer &&
709 proxy ? "Proxy" : "Server", auth,
710 proxy ? (conn->http_proxy.user ? conn->http_proxy.user : "") :
722 * host/proxy and the correct authentication
729 * @param proxytunnel boolean if this is the request setting up a "proxy
739 up the proxy tunnel */
768 far by a proxy round-trip. Then we set the picked one to the want one,
773 /* Send proxy authentication header if needed */
784 /* we have no proxy so let's pretend we're done authenticating
804 * Curl_http_input_auth() deals with Proxy-Authenticate: and WWW-Authenticate:
806 * proxy CONNECT loop.
809 CURLcode Curl_http_input_auth(struct connectdata *conn, bool proxy,
818 struct negotiatedata *negdata = proxy?
824 if(proxy) {
858 CURLcode result = Curl_input_negotiate(conn, proxy, auth);
887 CURLcode result = Curl_input_ntlm(conn, proxy, auth);
937 result = Curl_input_digest(conn, proxy, auth);
1454 return CURLE_OK; /* wait for HTTPS proxy SSL initialization to complete */
1461 /* add HAProxy PROXY protocol header */
1509 "PROXY %s %s %s %li %li\r\n",
1676 HEADER_PROXY, /* regular request to proxy */
1677 HEADER_CONNECT /* sending CONNECT to a proxy */
1737 enum proxy_use proxy;
1740 proxy = HEADER_CONNECT;
1742 proxy = conn->bits.httpproxy && !conn->bits.tunnel_proxy?
1745 switch(proxy) {
2044 it might have been used in the proxy connect, but if we have got a header
2286 /* Using a proxy but does not tunnel through it */
2288 /* The path sent to the proxy is in fact the entire URL. But if the remote
2548 "%s" /* Proxy-Connection */
2573 !Curl_checkProxyheaders(conn, "Proxy-Connection"))?
2574 "Proxy-Connection: Keep-Alive\r\n":"",
3835 "Proxy-Connection:", "keep-alive")) {
3837 * When a HTTP/1.0 reply comes when using a proxy, the
3838 * 'Proxy-Connection: keep-alive' line tells us the
3842 connkeep(conn, "Proxy-Connection keep-alive"); /* don't close */
3843 infof(data, "HTTP/1.0 proxy connection set to keep alive!\n");
3848 "Proxy-Connection:", "close")) {
3850 * We get a HTTP/1.1 response from a proxy and it says it'll
3853 connclose(conn, "Proxy-Connection: asked to close after done");
3854 infof(data, "HTTP/1.1 proxy connection set close!\n");
3961 (checkprefix("Proxy-authenticate:", k->p) &&
3964 bool proxy = (k->httpcode == 407) ? TRUE : FALSE;
3969 result = Curl_http_input_auth(conn, proxy, auth);