Lines Matching defs:http

58 proxy_support = urllib.request.ProxyHandler({"http" : "http://ahad-haam:3128"})
88 import http.client
171 For HTTP and HTTPS URLs, this function returns a http.client.HTTPResponse
206 context.set_alpn_protocols(['http/1.1'])
545 if proto in ('http', 'https'):
546 # XXX http[s] protocols are special-cased
547 dict = self.handle_error['http'] # https is not different than http
583 if hasattr(http.client, "HTTPSConnection"):
635 'http', request, response, code, msg, hdrs)
705 # than http, https or ftp.
707 if urlparts.scheme not in ('http', 'https', 'ftp', ''):
718 # http.client.parse_headers() decodes as ISO-8859-1. Recover the
829 # {'http': 'ftp://proxy.example.com'}, we may end up turning
830 # a request for http://acme.example.com/a into one for
876 dport = {"http": 80,
1265 return http.client.HTTPConnection._get_content_length(
1310 http_class must implement the HTTPConnection API from http.client.
1377 return self.do_open(http.client.HTTPConnection, req)
1381 if hasattr(http.client, 'HTTPSConnection'):
1391 return self.do_open(http.client.HTTPSConnection, req,
1400 import http.cookiejar
1402 cookiejar = http.cookiejar.CookieJar()
1900 if urltype.lower() != 'http':
1911 if not host: raise OSError('http error', 'no host given')
1949 except http.client.BadStatusLine:
1951 raise URLError("http protocol error: bad status line")
1956 return addinfourl(response, response.msg, "http:" + url,
1965 return self._open_generic_http(http.client.HTTPConnection, url, data)
1968 """Handle http errors.
1990 return http.client.HTTPSConnection(host,
2150 return addinfourl(fp, headers, "http:" + url, errcode)
2185 # than http, https and ftp.
2190 if urlparts.scheme not in ('http', 'https', 'ftp', ''):
2272 newurl = 'http://' + host + selector
2273 proxy = self.proxies['http']
2282 self.proxies['http'] = 'http://' + proxyhost + proxyselector
2314 newurl = 'http://' + host + selector
2520 proxies.pop('http', None)
2690 proxyServer = 'http={0};https={0};ftp={0}'.format(proxyServer)
2696 if protocol in ('http', 'https', 'ftp'):
2698 address = 'http://' + address
2706 proxies['http'] = proxies.get('http') or address