Lines Matching refs:httplib2
12 import httplib2
40 c = httplib2.Credentials()
61 httplib2.parse_uri("http://example.com"),
65 httplib2.parse_uri("https://example.com"),
69 httplib2.parse_uri("https://example.com:8080"),
73 httplib2.parse_uri("http://example.com/"),
77 httplib2.parse_uri("http://example.com/path"),
81 httplib2.parse_uri("http://example.com/path?a=1&b=2"),
85 httplib2.parse_uri("http://example.com/path?a=1&b=2#fred"),
89 httplib2.parse_uri("http://example.com/path?a=1&b=2#fred"),
96 "http://example.org/", httplib2.urlnorm("http://example.org")[-1]
99 "http://example.org/", httplib2.urlnorm("http://EXAMple.org")[-1]
102 "http://example.org/?=b", httplib2.urlnorm("http://EXAMple.org?=b")[-1]
106 httplib2.urlnorm("http://EXAMple.org/mypath?a=b")[-1],
109 "http://localhost:80/", httplib2.urlnorm("http://localhost:80")[-1]
112 httplib2.urlnorm("http://localhost:80/"),
113 httplib2.urlnorm("HTTP://LOCALHOST:80"),
116 httplib2.urlnorm("/")
118 except httplib2.RelativeURIError:
127 httplib2.safename("http://example.org/fred/?a=b"),
131 httplib2.safename("http://example.org/fred?/a=b"),
135 httplib2.safename("http://www.example.org/fred?/a=b"),
138 httplib2.safename(httplib2.urlnorm("http://www")[-1]),
139 httplib2.safename(httplib2.urlnorm("http://WWW")[-1]),
143 httplib2.safename("https://www.example.org/fred?/a=b"),
146 httplib2.safename("http://www"), httplib2.safename("https://www")
151 self.assertNotEqual(httplib2.safename(uri2), httplib2.safename(uri))
153 self.assertEqual(233, len(httplib2.safename(uri2)))
154 self.assertEqual(233, len(httplib2.safename(uri)))
159 httplib2.safename(u"http://\u2304.org/fred/?a=b"),
259 self.http = httplib2.Http(
278 except httplib2.CertificateHostnameMismatch:
295 old_retries = httplib2.RETRIES
296 httplib2.RETRIES = 1
304 httplib2.RETRIES = old_retries
313 except httplib2.ServerNotFoundError:
378 http = httplib2.Http()
408 http = httplib2.Http()
544 except httplib2.RedirectLimit:
567 except httplib2.RedirectMissingLocation:
627 http = httplib2.Http(disable_ssl_certificate_validation=False)
629 httplib2.CertificateValidationUnsupported,
643 http = httplib2.Http(timeout=2, disable_ssl_certificate_validation=True)
724 cacheDirName, httplib2.safename(httplib2.urlnorm(uri)[-1])
985 except httplib2.FailedToDecompressContent:
1014 http = httplib2.Http(timeout=1)
1023 c = httplib2.HTTPSConnectionWithTimeout("localhost", 80, timeout=47)
1045 except httplib2.FailedToDecompressContent:
1342 info = httplib2._parse_www_authenticate(response, "authentication-info")
1347 info2 = httplib2._parse_www_authenticate(response, "authentication-info")
1360 info = httplib2._parse_www_authenticate(response, "authentication-info")
1371 info3 = httplib2._parse_www_authenticate(response, "authentication-info")
1440 self.http = httplib2.Http(self.cache)
1460 self.assertEqual({}, httplib2._parse_cache_control({}))
1463 httplib2._parse_cache_control({"cache-control": " no-cache"}),
1465 cc = httplib2._parse_cache_control(
1470 cc = httplib2._parse_cache_control({"cache-control": " , "})
1474 cc = httplib2._parse_cache_control(
1483 h = httplib2._normalize_headers({"Cache-Control": "no-cache", "Other": "Stuff"})
1494 httplib2._entry_disposition(response_headers, request_headers),
1502 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1516 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1523 httplib2._entry_disposition({}, {"cache-control": "must-revalidate"}),
1530 httplib2._entry_disposition({"cache-control": "must-revalidate"}, {}),
1540 "FRESH", httplib2._entry_disposition(response_headers, request_headers)
1544 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1554 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1565 "FRESH", httplib2._entry_disposition(response_headers, request_headers)
1569 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1580 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1590 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1597 "FRESH", httplib2._entry_disposition(response_headers, request_headers)
1608 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1619 "STALE", httplib2._entry_disposition(response_headers, request_headers)
1630 "FRESH", httplib2._entry_disposition(response_headers, request_headers)
1634 res = httplib2._parse_www_authenticate({})
1639 res = httplib2._parse_www_authenticate(
1648 res = httplib2._parse_www_authenticate(
1655 res = httplib2._parse_www_authenticate(
1662 httplib2.USE_WWW_AUTH_STRICT_PARSING = 1
1664 httplib2.USE_WWW_AUTH_STRICT_PARSING = 0
1667 res = httplib2._parse_www_authenticate({"www-authenticate": 'Basic realm="me"'})
1671 res = httplib2._parse_www_authenticate(
1678 res = httplib2._parse_www_authenticate(
1686 res = httplib2._parse_www_authenticate(
1694 res = httplib2._parse_www_authenticate(
1701 res = httplib2._parse_www_authenticate(
1711 res = httplib2._parse_www_authenticate(
1727 res = httplib2._parse_www_authenticate(
1743 res = httplib2._parse_www_authenticate(
1760 res = httplib2._parse_www_authenticate(
1771 res = httplib2._parse_www_authenticate(
1781 res = httplib2._parse_www_authenticate(
1787 except httplib2.MalformedHeader:
1802 d = httplib2.DigestAuthentication(
1828 d = httplib2.DigestAuthentication(
1848 response = httplib2.Response({})
1856 d = httplib2.DigestAuthentication(
1867 response = httplib2.Response({})
1875 d = httplib2.DigestAuthentication(
1884 digest = httplib2._wsse_username_token(
1893 end2end = httplib2._get_end2end_headers(response)
1904 end2end = httplib2._get_end2end_headers(response)
1911 end2end = httplib2._get_end2end_headers(response)
1916 end2end = httplib2._get_end2end_headers(response)
1929 pi = httplib2.proxy_info_from_url("http://myproxy.example.com")
1935 pi = httplib2.proxy_info_from_url("http://zoidberg:fish@someproxy:99")
1943 pi = httplib2.proxy_info_from_environment()
1952 pi = httplib2.proxy_info_from_environment("https")
1959 pi = httplib2.proxy_info_from_environment()
1966 pi = httplib2.proxy_info_from_environment()
1974 pi = httplib2.proxy_info_from_environment()
1980 pi = httplib2.ProxyInfo(
1981 httplib2.socks.PROXY_TYPE_HTTP, "localhost", 1234, proxy_headers=headers