Lines Matching refs:Proxy
193 In addition, if proxy settings are detected (for example, when a *_proxy
195 installed and makes sure the requests are handled through the proxy.
764 def _parse_proxy(proxy):
771 scheme, r_scheme = splittype(proxy)
775 authority = proxy
779 raise ValueError("proxy URL with no authority: %r" % proxy)
804 lambda r, proxy=url, type=type, meth=self.proxy_open:
805 meth(r, proxy, type))
807 def proxy_open(self, req, proxy, type):
809 proxy_type, user, password, hostport = _parse_proxy(proxy)
820 req.add_header('Proxy-authorization', 'Basic ' + creds)
828 # grok the proxy's URL type
830 # {'http': 'ftp://proxy.example.com'}, we may end up turning
832 # ftp://proxy.example.com/a
1033 auth_header = 'Proxy-authorization'
1041 response = self.http_error_auth_reqed('proxy-authenticate',
1214 auth_header = 'Proxy-Authorization'
1219 retry = self.http_error_auth_reqed('proxy-authenticate',
1306 proxy_auth_hdr = "Proxy-Authorization"
1309 # Proxy-Authorization should not be sent to origin
1740 proxy = self.proxies[urltype]
1741 urltype, proxyhost = splittype(proxy)
1745 proxy = None
1750 if proxy:
1751 return self.open_unknown_proxy(proxy, fullurl, data)
1769 def open_unknown_proxy(self, proxy, fullurl, data=None):
1772 raise OSError('url error', 'invalid proxy for %s' % type, proxy)
1863 # check whether the proxy contains authorization information
1896 headers["Proxy-Authorization"] = "Basic %s" % proxy_auth
1970 raise URLError('file error: proxy support for file protocol currently not implemented')
2011 raise URLError('ftp error: proxy support for ftp protocol currently not implemented')
2069 raise URLError('data error: proxy support for data protocol currently not implemented')
2209 """Error 407 -- proxy authentication required.
2211 if 'proxy-authenticate' not in headers:
2214 stuff = headers['proxy-authenticate']
2235 proxy = self.proxies['http']
2236 urltype, proxyhost = splittype(proxy)
2253 proxy = self.proxies['https']
2254 urltype, proxyhost = splittype(proxy)
2455 # Proxy handling
2457 """Return a dictionary of scheme -> proxy server URL mappings.
2473 # (non-all-lowercase) as it may be set from the web server by a "Proxy:"
2475 # If "proxy" is lowercase, it will still be used thanks to the next block
2490 Checks the proxy dict for the value of no_proxy, which should
2507 no_proxy_list = [proxy.strip() for proxy in no_proxy.split(',')]
2524 Return True iff this host shouldn't be accessed using a proxy
2527 to fetch the proxy information.
2590 """Return a dictionary of scheme -> proxy server URL mappings.
2593 to fetch the proxy information.
2602 Checks proxy settings gathered from the environment, if specified,
2618 """Return a dictionary of scheme -> proxy server URL mappings.
2663 """Return a dictionary of scheme -> proxy server URL mappings.
2724 Checks proxy settings gathered from the environment, if specified,