Lines Matching refs:proxy

185     In addition, if proxy settings are detected (for example, when a *_proxy
187 installed and makes sure the requests are handled through the proxy.
758 def _parse_proxy(proxy):
765 scheme, r_scheme = _splittype(proxy)
769 authority = proxy
773 raise ValueError("proxy URL with no authority: %r" % proxy)
803 lambda r, proxy=url, type=type, meth=self.proxy_open:
804 meth(r, proxy, type))
806 def proxy_open(self, req, proxy, type):
808 proxy_type, user, password, hostport = _parse_proxy(proxy)
827 # grok the proxy's URL type
829 # {'http': 'ftp://proxy.example.com'}, we may end up turning
831 # ftp://proxy.example.com/a
1071 response = self.http_error_auth_reqed('proxy-authenticate',
1251 retry = self.http_error_auth_reqed('proxy-authenticate',
1771 proxy = self.proxies[urltype]
1772 urltype, proxyhost = _splittype(proxy)
1776 proxy = None
1781 if proxy:
1782 return self.open_unknown_proxy(proxy, fullurl, data)
1800 def open_unknown_proxy(self, proxy, fullurl, data=None):
1803 raise OSError('url error', 'invalid proxy for %s' % type, proxy)
1894 # check whether the proxy contains authorization information
2001 raise URLError('file error: proxy support for file protocol currently not implemented')
2042 raise URLError('ftp error: proxy support for ftp protocol currently not implemented')
2100 raise URLError('data error: proxy support for data protocol currently not implemented')
2247 """Error 407 -- proxy authentication required.
2249 if 'proxy-authenticate' not in headers:
2252 stuff = headers['proxy-authenticate']
2273 proxy = self.proxies['http']
2274 urltype, proxyhost = _splittype(proxy)
2291 proxy = self.proxies['https']
2292 urltype, proxyhost = _splittype(proxy)
2500 """Return a dictionary of scheme -> proxy server URL mappings.
2518 # If "proxy" is lowercase, it will still be used thanks to the next block
2533 Checks the proxy dict for the value of no_proxy, which should
2569 Return True iff this host shouldn't be accessed using a proxy
2572 to fetch the proxy information.
2640 """Return a dictionary of scheme -> proxy server URL mappings.
2643 to fetch the proxy information.
2652 Checks proxy settings gathered from the environment, if specified,
2668 """Return a dictionary of scheme -> proxy server URL mappings.
2697 # The default proxy type of Windows is HTTP
2702 # Use SOCKS proxy for HTTP(S) protocols
2704 # The default SOCKS proxy type of Windows is SOCKS4
2717 """Return a dictionary of scheme -> proxy server URL mappings.
2778 Checks proxy settings gathered from the environment, if specified,