Lines Matching refs:proxy
188 * checkProxyHeaders() checks the linked list of custom proxy headers
189 * if proxy headers are not available, then it will lookup into http header
192 * It takes a connectdata struct as input to see if this is a proxy request or
203 for(head = (conn->bits.proxy && data->set.sep_headers) ?
267 * http_output_basic() sets up an Authorization: header (or the proxy version)
272 static CURLcode http_output_basic(struct Curl_easy *data, bool proxy)
284 if(proxy) {
314 proxy ? "Proxy-" : "",
646 * and whether or not it is to a proxy.
654 bool proxy)
667 result = Curl_output_aws_sigv4(data, proxy);
676 result = Curl_output_negotiate(data, conn, proxy);
685 result = Curl_output_ntlm(data, proxy);
694 result = Curl_output_ntlm_wb(data, conn, proxy);
704 proxy,
717 (proxy && conn->bits.proxy_user_passwd &&
720 (!proxy && data->state.aptr.user &&
723 result = http_output_basic(data, proxy);
736 if((!proxy && data->set.str[STRING_BEARER] &&
753 proxy ? "Proxy" : "Server", auth,
754 proxy ? (data->state.aptr.proxyuser ?
759 (void)proxy;
774 * host/proxy and the correct authentication
781 * @param proxytunnel boolean if this is the request setting up a "proxy
793 up the proxy tunnel */
829 far by a proxy round-trip. Then we set the picked one to the want one,
834 /* Send proxy authentication header if needed */
845 /* we have no proxy so let's pretend we're done authenticating
907 * proxy CONNECT loop.
909 CURLcode Curl_http_input_auth(struct Curl_easy *data, bool proxy,
917 curlnegotiate *negstate = proxy ? &conn->proxy_negotiate_state :
929 if(proxy) {
938 (void) proxy;
968 CURLcode result = Curl_input_negotiate(data, conn, proxy, auth);
997 CURLcode result = Curl_input_ntlm(data, proxy, auth);
1007 result = Curl_input_ntlm_wb(data, conn, proxy, auth);
1038 result = Curl_input_digest(data, proxy, auth);
1644 HEADER_PROXY, /* regular request to proxy */
1645 HEADER_CONNECT /* sending CONNECT to a proxy */
1714 enum proxy_use proxy;
1717 proxy = HEADER_CONNECT;
1719 proxy = conn->bits.httpproxy && !conn->bits.tunnel_proxy?
1722 switch(proxy) {
1861 enum proxy_use proxy;
1864 proxy = HEADER_CONNECT;
1866 proxy = conn->bits.httpproxy && !conn->bits.tunnel_proxy?
1869 switch(proxy) {
2129 it might have been used in the proxy connect, but if we have got a header
2244 /* Using a proxy but does not tunnel through it */
2246 /* The path sent to the proxy is in fact the entire URL. But if the remote
2325 (void)conn; /* not used in disabled-proxy builds */
3107 conn->bits.proxy && !conn->bits.tunnel_proxy
3490 * When an HTTP/1.0 reply comes when using a proxy, the
3496 infof(data, "HTTP/1.0 proxy connection set to keep alive");
3504 * We get an HTTP/1.1 response from a proxy and it says it'll
3508 infof(data, "HTTP/1.1 proxy connection set close");
3648 bool proxy = (k->httpcode == 407) ? TRUE : FALSE;
3653 result = Curl_http_input_auth(data, proxy, auth);