• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/curl-7.23.1/lib/

Lines Matching refs:proxy

692   set->proxytype = CURLPROXY_HTTP; /* defaults to HTTP proxy */
1434 * Tunnel operations through the proxy instead of normal proxy use
1441 * Explicitly set HTTP proxy port number.
1481 * Set proxy server:port to use as HTTP proxy.
1483 * If the proxy is set to "" we explicitly say that we don't want to use a
1484 * proxy (even though there might be environment variables saying so).
1486 * Setting it to NULL, means no proxy but allows the environment variables
1495 * Set proxy type. HTTP/HTTP_1_0/SOCKS4/SOCKS4a/SOCKS5/SOCKS5_HOSTNAME
1502 * set transfer mode (;type=<a|i>) when doing FTP via an HTTP proxy
1755 * user:password needed to use the proxy
1777 * proxy exception list
2582 Curl_safefree(conn->proxy.rawalloc); /* proxy name buffer */
2677 if(conn->proxy.encalloc)
2678 idn_free(conn->proxy.encalloc); /* encoded proxy name buffer, must be
2685 if(conn->proxy.encalloc)
2686 free(conn->proxy.encalloc); /* encoded proxy name buffer, must be freed
2865 * Note that if we use a HTTP proxy, we check connections to that
2866 * proxy and not to the actual remote server.
2968 if(needle->bits.proxy != check->bits.proxy)
2969 /* don't do mixed proxy and non-proxy connections */
3000 Curl_raw_equal(needle->proxy.name, check->proxy.name) &&
3002 /* The requested connection does not use a HTTP proxy or it uses SSL or
3003 it is a non-SSL protocol tunneled over the same http proxy name and
3043 else { /* The requested needle connection is using a proxy,
3045 if(check->bits.proxy &&
3048 Curl_raw_equal(needle->proxy.name, check->proxy.name) &&
3050 /* This is the same proxy connection, use it! */
3168 /* after a TCP connection to the proxy has been verified, this function does
3211 char *hostname = conn->bits.proxy?conn->proxy.name:conn->host.name;
3214 conn->bits.proxy?"proxy ":"",
3221 * Connect to server/proxy
3255 conn->bits.proxy ? conn->proxy.dispname : conn->host.dispname,
3334 or proxy. Note that we don't know if the protocol is actually done.
3531 conn->bits.proxy = FALSE;
3538 /* note that these two proxy bits are now just on what looks to be
3540 conn->bits.proxy = (data->set.str[STRING_PROXY] &&
3542 conn->bits.httpproxy = (conn->bits.proxy &&
3683 * We need to parse the url even when using the proxy, because we will need
3685 * proxy -- and we don't know if we will need to use SSL until we parse the
3918 * This MUST get called after proxy magic has been figured out.
3942 /* we check for -1 here since if proxy was detected already, this
3943 was very likely already set to the proxy port */
3953 * and therefore the proxy should NOT be used.
3960 * all proxy variables)
4012 * so it is within the same domain, so no proxy for this host.
4026 * Detect what (if any) proxy to use. Remember that this selects a host
4032 char *proxy = NULL;
4035 /* If proxy was not specified, we check for default proxy environment
4044 * all proxy variables)
4060 /* It was not listed as without proxy */
4072 /* read the protocol proxy: */
4094 proxy = prox; /* use this */
4097 proxy = curl_getenv("all_proxy"); /* default proxy to use */
4098 if(!proxy)
4099 proxy=curl_getenv("ALL_PROXY");
4102 non-proxy */
4111 return proxy;
4115 * If this is supposed to use a proxy, we need to figure out the proxy
4117 * that may exist registered to the same proxy host.
4118 * proxy will be freed before this function returns.
4121 struct connectdata *conn, char *proxy)
4126 /* We use 'proxyptr' to point to the proxy name from now on... */
4131 /* We do the proxy host string parsing here. We want the host name and the
4136 endofprot = strstr(proxy, "://");
4139 if(checkprefix("socks5h", proxy))
4141 else if(checkprefix("socks5", proxy))
4143 else if(checkprefix("socks4a", proxy))
4145 else if(checkprefix("socks4", proxy))
4147 /* Any other xxx:// : change to http proxy */
4150 proxyptr = proxy; /* No xxx:// head: It's a HTTP proxy */
4152 /* Is there a username and password given in this proxy url? */
4187 free(proxy); /* free the former proxy string */
4188 proxy = proxyptr = atsign; /* now use this instead */
4195 free(proxy); /* free the allocated proxy string */
4222 /* Get port number off proxy.server.com:1080 */
4238 /* None given in the proxy string, then get the default one if it is
4243 /* now, clone the cleaned proxy host name */
4244 conn->proxy.rawalloc = strdup(proxyptr);
4245 conn->proxy.name = conn->proxy.rawalloc;
4247 free(proxy);
4248 if(!conn->proxy.rawalloc)
4375 * No matter if we use a proxy or not, we have to figure out the remote
4549 * Resolve the address of the server or proxy
4559 * Resolve the name of the server or proxy
4565 if(conn->bits.proxy)
4576 if(!conn->proxy.name || !*conn->proxy.name) {
4577 /* If not connecting via a proxy, extract the port from the URL, if it is
4597 /* This is a proxy that hasn't been resolved yet. */
4599 /* IDN-fix the proxy name */
4600 fix_hostname(data, conn, &conn->proxy);
4602 /* resolve proxy */
4603 rc = Curl_resolv_timeout(conn, conn->proxy.name, (int)conn->port,
4613 failf(data, "Couldn't resolve proxy '%s'", conn->proxy.dispname);
4633 if(old_conn->proxy.rawalloc)
4634 free(old_conn->proxy.rawalloc);
4657 /* use the new proxy user name and proxy password though */
4666 /* host can change, when doing keepalive with a proxy ! */
4667 if(conn->bits.proxy) {
4726 char *proxy = NULL;
4797 /* We're guessing prefixes here and if we're told to use a proxy or if
4805 Curl_safefree(proxy);
4837 * Detect what (if any) proxy to use
4840 proxy = strdup(data->set.str[STRING_PROXY]);
4841 /* if global proxy is set, this is it */
4842 if(NULL == proxy) {
4850 if(proxy) {
4851 free(proxy); /* proxy is in exception list */
4852 proxy = NULL;
4855 else if(!proxy)
4856 proxy = detect_proxy(conn);
4858 if(proxy && (!*proxy || (conn->handler->flags & PROTOPT_NONETWORK))) {
4859 free(proxy); /* Don't bother with an empty proxy string or if the
4861 proxy = NULL;
4865 * If this is supposed to use a proxy, we need to figure out the proxy host
4866 * name, proxy type and port number, so that we can re-use an existing
4867 * connection that may exist registered to the same proxy host.
4869 if(proxy) {
4870 result = parse_proxy(data, conn, proxy);
4872 /* parse_proxy has freed the proxy string, so don't try to use it again */
4879 /* asking for a HTTP proxy is a bit funny when HTTP is disabled... */
4891 conn->bits.httpproxy = FALSE; /* not a HTTP proxy */
4892 conn->bits.proxy = TRUE;
4895 /* we aren't using the proxy after all... */
4896 conn->bits.proxy = FALSE;
4906 * we figured out what/if proxy to use.
4910 Curl_safefree(proxy);
4957 * If the protocol is using SSL and HTTP proxy is used, we set
5031 conn->proxy.name?conn->proxy.dispname:conn->host.dispname);
5063 * Resolve the address of the server or proxy
5095 case of proxy CONNECT failures and we must make sure we don't have it
5101 * basically anything through a http proxy we can't limit this based on
5315 conn->bits.httpproxy?conn->proxy.dispname:conn->host.dispname);