Lines Matching refs:http
33 base = "http://bitworking.org/projects/httplib2/test/"
34 # base = 'http://localhost/projects/httplib2/test/'
60 ("http", "example.com", "", None, None),
61 httplib2.parse_uri("http://example.com"),
72 ("http", "example.com", "/", None, None),
73 httplib2.parse_uri("http://example.com/"),
76 ("http", "example.com", "/path", None, None),
77 httplib2.parse_uri("http://example.com/path"),
80 ("http", "example.com", "/path", "a=1&b=2", None),
81 httplib2.parse_uri("http://example.com/path?a=1&b=2"),
84 ("http", "example.com", "/path", "a=1&b=2", "fred"),
85 httplib2.parse_uri("http://example.com/path?a=1&b=2#fred"),
88 ("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]
105 "http://example.org/mypath?a=b",
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"),
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]),
146 httplib2.safename("http://www"), httplib2.safename("https://www")
149 uri = "http://" + ("w" * 200) + ".org"
150 uri2 = "http://" + ("w" * 201) + ".org"
158 "xn--http,-4y1d.org,fred,a=b,579924c35db315e5a32e3d9963388193",
159 httplib2.safename(u"http://\u2304.org/fred/?a=b"),
259 self.http = httplib2.Http(
262 self.http.clear_credentials()
266 self.http.request("http://[::1]/")
275 self.http.request("https://[::1]/")
287 self.http.force_exception_to_status_code = False
288 response, content = self.http.request(
289 "http://bitworking.org", connection_type=_MyHTTPConnection
291 self.assertEqual(response["content-location"], "http://bitworking.org")
297 self.http.force_exception_to_status_code = False
299 response, content = self.http.request(
300 "http://bitworking.org", connection_type=_MyHTTPBadStatusConnection
307 self.http.force_exception_to_status_code = False
309 self.http.request("http://fred.bitworking.org/")
317 self.http.force_exception_to_status_code = True
319 (response, content) = self.http.request("http://fred.bitworking.org/")
325 self.http.force_exception_to_status_code = False
327 self.http.request("http://localhost:7777/")
333 self.http.force_exception_to_status_code = True
335 (response, content) = self.http.request("http://localhost:7777/")
348 (response, content) = self.http.request(uri, "GET")
356 (response, content) = self.http.request(uri)
363 (response, content) = self.http.request(uri, method, body=" ")
371 uri = "http://www.google.com/"
372 (response, content) = self.http.request(uri, "HEAD")
378 http = httplib2.Http()
380 (response, content) = http.request(uri, "GET")
387 (response, content) = self.http.request(uri, "GET")
388 (response, content) = self.http.request(
397 (response, content) = self.http.request(
408 http = httplib2.Http()
410 (response, content) = http.request(
419 (response, content) = self.http.request(uri, "GET")
427 (response, content) = self.http.request(
436 (response, content) = self.http.request(uri, "GET")
443 (response, content) = self.http.request(uri, "GET")
451 self.http.follow_redirects = False
453 http.request(uri, "GET")
460 (response, content) = self.http.request(uri, "GET")
470 (response, content) = self.http.request(uri, "GET")
478 (response, content) = self.http.request(uri, "GET")
489 (response, content) = self.http.request(uri, "HEAD")
497 self.http.follow_redirects = False
500 (response, content) = self.http.request(uri, "GET")
508 (response, content) = self.http.request(uri, "GET")
516 (response, content) = self.http.request(uri, "GET")
527 (response, content) = self.http.request(uri, "GET")
538 self.http.force_exception_to_status_code = False
542 (response, content) = self.http.request(uri, "GET", redirections=1)
550 self.http.force_exception_to_status_code = True
552 (response, content) = self.http.request(uri, "GET", redirections=1)
562 self.http.force_exception_to_status_code = False
565 (response, content) = self.http.request(uri, "GET")
573 self.http.force_exception_to_status_code = True
575 (response, content) = self.http.request(uri, "GET")
583 (response, content) = self.http.request("https://code.google.com/apis/", "GET")
589 (response, content) = self.http.request(
599 (response, content) = self.http.request("https://www.google.com/adsense", "GET")
609 # self.http.request("https://www.appspot.com/", "GET")
623 # self.http.request, "https://google.com/", "GET")
627 http = httplib2.Http(disable_ssl_certificate_validation=False)
630 http.request,
643 http = httplib2.Http(timeout=2, disable_ssl_certificate_validation=True)
645 http.add_certificate("akeyfile", "acertfile", "bitworking.org")
647 (response, content) = http.request("https://bitworking.org", "GET")
650 self.assertEqual(http.connections["https:bitworking.org"].key_file, "akeyfile")
652 http.connections["https:bitworking.org"].cert_file, "acertfile"
656 (response, content) = http.request("https://notthere.bitworking.org", "GET")
660 http.connections["https:notthere.bitworking.org"].key_file, None
663 http.connections["https:notthere.bitworking.org"].cert_file, None
670 (response, content) = self.http.request(uri, "POST", " ")
678 self.http.follow_redirects = False
680 (response, content) = self.http.request(uri, "POST", " ")
693 (response, content) = self.http.request(uri, method, body=" ")
700 response, content = self.http.request(uri, "GET", body=" ", headers=headers)
702 self.http.follow_all_redirects = True
703 self.http.forward_authorization_headers = True
704 response, content = self.http.request(uri, "GET", body=" ", headers=headers)
711 (response, content) = self.http.request(
716 (response, content) = self.http.request(uri, "GET")
717 (response, content) = self.http.request(
732 (response, content) = self.http.request(uri, "HEAD")
736 (response, content) = self.http.request(
745 (response, content) = self.http.request(
750 (response, content) = self.http.request(
758 self.http.ignore_etag = True
759 (response, content) = self.http.request(
771 (response, content) = self.http.request(
776 (response, content) = self.http.request(
785 (response, content) = self.http.request(
802 # (response, content) = self.http.request(uri, "GET")
807 # (response, content) = self.http.request(uri, "GET", headers = {'Cache-Control': 'max-age=0'})
818 (response, content) = self.http.request(uri, "GET")
821 (response, content) = self.http.request(uri, "GET")
822 (response, content) = self.http.request(uri, "GET")
830 (response, content) = self.http
836 (response, content) = self.http.request(uri, "GET")
846 (response, content) = self.http.request(uri, "GET")
855 (response, content) = self.http.request(
863 (response, content) = self.http.request(
870 (response, content) = self.http.request(
877 (response, content) = self.http.request(uri, "GET")
887 # (response, content) = self.http.request(uri, "GET", headers={'Accept': 'text/plain'})
891 # (response, content) = self.http.request(uri, "GET", headers={'Accept': 'text/plain'})
895 # (response, content) = self.http.request(uri, "GET", headers={'Accept': 'text/html'})
901 (response, content) = self.http.request(
913 (response, content) = self.http.request(
923 (response, content) = self.http.request(
930 (response, content) = self.http.request(
939 (response, content) = self.http.request(
946 (response, content) = self.http.request(
954 (response, content) = self.http.request(uri, "HEAD")
962 (response, content) = self.http.request(uri, "GET")
973 (response, content) = self.http.request(uri, "POST", body=" ")
980 self.http.force_exception_to_status_code = False
983 (response, content) = self.http.request(uri, "GET")
991 self.http.force_exception_to_status_code = True
993 (response, content) = self.http.request(uri, "GET")
998 self.http.force_exception_to_status_code = True
1007 (response, content) = self.http.request(uri)
1014 http = httplib2.Http(timeout=1)
1015 http.force_exception_to_status_code = True
1017 (response, content) = http.request(uri)
1029 (response, content) = self.http.request(uri, "GET")
1039 self.http.force_exception_to_status_code = False
1043 (response, content) = self.http.request(uri, "GET")
1051 self.http.force_exception_to_status_code = True
1053 (response, content) = self.http.request(uri, "GET")
1060 (response, content) = self.http.request(uri, "GET")
1065 '<http://bitworking.org>; rel="home"; title="BitWorking"',
1071 (response, content) = self.http.request(
1075 (response, content) = self.http.request(
1081 (response, content) = self.http.request(
1092 (response, content) = self.http.request(
1096 (response, content) = self.http.request(
1102 (response, content) = self.http.request(
1112 (response, content) = self.http.request(
1118 (response, content) = self.http.request(
1128 (response, content) = self.http.request(uri, "GET")
1132 (response, content) = self.http.request(uri, "GET")
1141 (response, content) = self.http.request(uri, "GET")
1142 (response, content) = self.http.request(uri, "GET")
1144 (response, content) = self.http.request(
1147 (response, content) = self.http.request(
1158 (response, content) = self.http.request(uri, "GET")
1159 (response, content) = self.http.request(uri, "GET")
1161 (response, content) = self.http.request(uri, "DELETE")
1164 (response, content) = self.http.request(uri, "GET")
1168 # Test that we natively support http://www.w3.org/1999/04/Editing/
1171 (response, content) = self.http.request(uri, "GET")
1174 (response, content) = self.http.request(uri, "GET")
1177 (response, content) = self.http.request(uri, "PUT", body="foo")
1179 (response, content) = self.http.request(uri, "PUT", body="foo")
1183 # Test that we natively support http://www.w3.org/1999/04/Editing/
1186 (response, content) = self.http.request(uri, "GET")
1189 (response, content) = self.http.request(uri, "GET")
1192 (response, content) = self.http.request(uri, "PATCH", body="foo")
1194 (response, content) = self.http.request(uri, "PATCH", body="foo")
1198 # Test that we natively support http://www.w3.org/1999/04/Editing/
1201 (response, content) = self.http.request(uri, "GET")
1204 (response, content) = self.http.request(uri, "GET")
1207 self.http.optimistic_concurrency_methods.append("DELETE")
1208 (response, content) = self.http.request(uri, "DELETE")
1212 # Test that we natively support http://www.w3.org/1999/04/Editing/
1215 (response, content) = self.http.request(uri, "GET")
1218 (response, content) = self.http.request(uri, "GET")
1221 (response, content) = self.http.request(
1229 (response, content) = self.http.request(uri, "GET")
1233 (response, content) = self.http.request(uri, "GET")
1236 self.http.add_credentials("joe", "password")
1237 (response, content) = self.http.request(uri, "GET")
1241 (response, content) = self.http.request(uri, "GET")
1247 (response, content) = self.http.request(uri, "GET")
1251 (response, content) = self.http.request(uri, "GET")
1254 self.http.add_credentials("joe", "password", "example.org")
1255 (response, content) = self.http.request(uri, "GET")
1259 (response, content) = self.http.request(uri, "GET")
1263 self.http.add_credentials("joe", "password", domain)
1264 (response, content) = self.http.request(uri, "GET")
1268 (response, content) = self.http.request(uri, "GET")
1274 (response, content) = self.http.request(uri, "GET")
1278 (response, content) = self.http.request(uri, "GET")
1281 self.http.add_credentials("fred", "barney")
1282 (response, content) = self.http.request(uri, "GET")
1286 (response, content) = self.http.request(uri, "GET")
1293 (response, content) = self.http.request(uri, "GET")
1297 (response, content) = self.http.request(uri, "GET")
1301 self.http.add_credentials("joe", "password")
1304 (response, content) = self.http.request(uri, "GET")
1308 (response, content) = self.http.request(uri, "GET")
1311 self.http.add_credentials("fred", "barney")
1314 (response, content) = self.http.request(uri, "GET")
1318 (response, content) = self.http.request(uri, "GET")
1324 (response, content) = self.http.request(uri, "GET")
1327 self.http.add_credentials("joe", "password")
1328 (response, content) = self.http.request(uri, "GET")
1332 (response, content) = self.http.request(uri, "GET")
1338 self.http.add_credentials("joe", "password")
1339 (response, content) = self.http.request(
1344 (response, content) = self.http.request(
1356 self.http.add_credentials("joe", "password")
1357 (response, content) = self.http.request(
1366 (response, content) = self.http.request(
1379 (response, content) = self.http.request(uri, "GET")
1384 uri = "http://www.google.com/"
1385 (response, content) = self.http.request(uri, "GET")
1386 for c in self.http.connections.values():
1388 (response, content) = self.http.request(
1391 for c in self.http.connections.values():
1395 pickled_http = pickle.dumps(self.http)
1399 sorted(new_http.__dict__.keys()), sorted(self.http.__dict__.keys())
1405 self.http.__dict__[key].credentials,
1409 new_http.__dict__[key].cache, self.http.__dict__[key].cache
1412 self.assertEqual(new_http.__dict__[key], self.http.__dict__[key])
1415 self.http.request("http://bitworking.org", connection_type=_MyHTTPConnection)
1416 pickled_http = pickle.dumps(self.http)
1419 self.assertEqual(self.http.connections.keys(), ["http:bitworking.org"])
1428 self.http.request = dummy_request
1429 pickled_http = pickle.dumps(self.http)
1440 self.http = httplib2.Http(self.cache)
1448 self.http.clear_credentials()
1929 pi = httplib2.proxy_info_from_url("http://myproxy.example.com")
1935 pi = httplib2.proxy_info_from_url("http://zoidberg:fish@someproxy:99")
1942 os.environ["http_proxy"] = "http://myproxy.example.com:8080"
1949 os.environ["http_proxy"] = "http://myproxy.example.com:80"
1950 os.environ["https_proxy"] = "http://myproxy.example.com:81"
1963 os.environ["http_proxy"] = "http://myproxy.example.com:80"
1964 os.environ["https_proxy"] = "http://myproxy.example.com:81"
1972 os.environ["http_proxy"] = "http://myproxy.example.com:80"