Lines Matching defs:proxy
176 * checkProxyHeaders() checks the linked list of custom proxy headers
177 * if proxy headers are not available, then it will lookup into http header
181 * to know if this is a proxy request or not, as it then might check a
191 for(head = (conn->bits.proxy && data->set.sep_headers) ?
257 * http_output_basic() sets up an Authorization: header (or the proxy version)
262 static CURLcode http_output_basic(struct connectdata *conn, bool proxy)
273 if(proxy) {
299 proxy ? "Proxy-" : "",
547 * and whether or not it is to a proxy.
554 bool proxy)
562 struct negotiatedata *negdata = proxy ?
576 result = Curl_output_negotiate(conn, proxy);
587 result = Curl_output_ntlm(conn, proxy);
596 result = Curl_output_ntlm_wb(conn, proxy);
606 proxy,
616 if((proxy && conn->bits.proxy_user_passwd &&
617 !Curl_checkProxyheaders(conn, "Proxy-authorization:")) ||
618 (!proxy && conn->bits.user_passwd &&
621 result = http_output_basic(conn, proxy);
633 proxy ? "Proxy" : "Server", auth,
634 proxy ? (conn->http_proxy.user ? conn->http_proxy.user : "") :
646 * host/proxy and the correct authentication
653 * @param proxytunnel boolean if this is the request setting up a "proxy
663 up the proxy tunnel */
692 far by a proxy round-trip. Then we set the picked one to the want one,
697 /* Send proxy authentication header if needed */
708 /* we have no proxy so let's pretend we're done authenticating
728 * Curl_http_input_auth() deals with Proxy-Authenticate: and WWW-Authenticate:
730 * proxy CONNECT loop.
733 CURLcode Curl_http_input_auth(struct connectdata *conn, bool proxy,
742 struct negotiatedata *negdata = proxy?
748 if(proxy) {
784 CURLcode result = Curl_input_negotiate(conn, proxy, auth);
814 CURLcode result = Curl_input_ntlm(conn, proxy, auth);
864 result = Curl_input_digest(conn, proxy, auth);
1354 return CURLE_OK; /* wait for HTTPS proxy SSL initialization to complete */
1554 HEADER_PROXY, /* regular request to proxy */
1555 HEADER_CONNECT /* sending CONNECT to a proxy */
1569 enum proxy_use proxy;
1572 proxy = HEADER_CONNECT;
1574 proxy = conn->bits.httpproxy && !conn->bits.tunnel_proxy?
1577 switch(proxy) {
1869 it might have been used in the proxy connect, but if we have got a header
2094 /* Using a proxy but does not tunnel through it */
2096 /* The path sent to the proxy is in fact the entire URL. But if the remote
2330 "%s" /* Proxy-Connection */
2355 !Curl_checkProxyheaders(conn, "Proxy-Connection:"))?
2356 "Proxy-Connection: Keep-Alive\r\n":"",
3575 "Proxy-Connection:", "keep-alive")) {
3577 * When a HTTP/1.0 reply comes when using a proxy, the
3578 * 'Proxy-Connection: keep-alive' line tells us the
3582 connkeep(conn, "Proxy-Connection keep-alive"); /* don't close */
3583 infof(data, "HTTP/1.0 proxy connection set to keep alive!\n");
3588 "Proxy-Connection:", "close")) {
3590 * We get a HTTP/1.1 response from a proxy and it says it'll
3593 connclose(conn, "Proxy-Connection: asked to close after done");
3594 infof(data, "HTTP/1.1 proxy connection set close!\n");
3699 (checkprefix("Proxy-authenticate:", k->p) &&
3702 bool proxy = (k->httpcode == 407) ? TRUE : FALSE;
3707 result = Curl_http_input_auth(conn, proxy, auth);