• Home
  • Raw
  • Download

Lines Matching refs:content

288         response, content = self.http.request(
292 self.assertEqual(content, "the body")
299 response, content = self.http.request(
319 (response, content) = self.http.request("http://fred.bitworking.org/")
321 self.assertTrue(content.startswith("Unable to find"))
335 (response, content) = self.http.request("http://localhost:7777/")
338 "Connection refused" in content or "actively refused" in content,
348 (response, content) = self.http.request(uri, "GET")
349 d = self.reflector(content)
356 (response, content) = self.http.request(uri)
363 (response, content) = self.http.request(uri, method, body=" ")
372 (response, content) = self.http.request(uri, "HEAD")
374 self.assertEqual(content, "")
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(
410 (response, content) = http.request(
419 (response, content) = self.http.request(uri, "GET")
421 self.assertTrue(content.startswith("Python-httplib2/"))
427 (response, content) = self.http.request(
431 self.assertTrue(content.startswith("fred/1.0"))
436 (response, content) = self.http.request(uri, "GET")
438 self.assertEqual(content, "This is the final destination.\n")
443 (response, content) = self.http.request(uri, "GET")
445 self.assertEqual(content, "This is the final destination.\n")
453 (response, content) = self.http.request(uri, "GET")
460 (response, content) = self.http.request(uri, "GET")
470 (response, content) = self.http.request(uri, "GET")
474 self.assertEqual(content, "This is the final destination.\n")
478 (response, content) = self.http.request(uri, "GET")
481 self.assertEqual(content, "This is the final destination.\n")
489 (response, content) = self.http.request(uri, "HEAD")
500 (response, content) = self.http.request(uri, "GET")
508 (response, content) = self.http.request(uri, "GET")
511 self.assertEqual(content, "This is the final destination.\n")
516 (response, content) = self.http.request(uri, "GET")
520 self.assertEqual(content, "This is the final destination.\n")
527 (response, content) = self.http.request(uri, "GET")
530 self.assertEqual(content, "This is the final destination.\n")
542 (response, content) = self.http.request(uri, "GET", redirections=1)
552 (response, content) = self.http.request(uri, "GET", redirections=1)
556 self.assertTrue(content.startswith("<html>"))
565 (response, content) = self.http.request(uri, "GET")
575 (response, content) = self.http.request(uri, "GET")
579 self.assertTrue(content.startswith("This is content"))
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")
647 (response, content) = http.request("https://bitworking.org", "GET")
656 (response, content) = http.request("https://notthere.bitworking.org", "GET")
670 (response, content) = self.http.request(uri, "POST", " ")
672 self.assertEqual(content, "This is the final destination.\n")
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)
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(
755 d = self.reflector(content)
759 (response, content) = self.http.request(
764 d = self.reflector(content)
771 (response, content) = self.http.request(
776 (response, content) = self.http.request(
781 d = self.reflector(content)
785 (response, content) = self.http.request(
794 d = self.reflector(content)
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.request(uri, "GET")
832 self.assertEqual(content, "This is the final destination.\n")
836 (response, content) = self.http.request(uri, "GET")
839 self.assertEqual(content, "This is the final destination.\n")
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")
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")
957 self.assertEqual(content, "")
962 (response, content) = self.http.request(uri, "GET")
969 self.assertEqual(content, "This is the final destination.\n")
973 (response, content) = self.http.request(uri, "POST", body=" ")
983 (response, content) = self.http.request(uri, "GET")
993 (response, content) = self.http.request(uri, "GET")
1007 (response, content) = self.http.request(uri)
1010 self.assertTrue(content.startswith("Request Timeout"))
1017 (response, content) = http.request(uri)
1020 self.assertTrue(content.startswith("Request Timeout"))
1029 (response, content) = self.http.request(uri, "GET")
1035 self.assertEqual(content, "This is the final destination.")
1043 (response, content) = self.http.request(uri, "GET")
1053 (response, content) = self.http.request(uri, "GET")
1060 (response, content) = self.http.request(uri, "GET")
1062 self.assertEqual(content, "This is content\n")
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")
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")
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")
1201 (response, content) = self.http.request(uri, "GET")
1204 (response, content) = self.http.request(uri, "GET")
1208 (response, content) = self.http.request(uri, "DELETE")
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")
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")
1255 (response, content) = self.http.request(uri, "GET")
1259 (response, content) = self.http.request(uri, "GET")
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")
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")
1304 (response, content) = self.http.request(uri, "GET")
1308 (response, content) = self.http.request(uri, "GET")
1314 (response, content) = self.http.request(uri, "GET")
1318 (response, content) = self.http.request(uri, "GET")
1324 (response, content) = self.http.request(uri, "GET")
1328 (response, content) = self.http.request(uri, "GET")
1332 (response, content) = self.http.request(uri, "GET")
1339 (response, content) = self.http.request(
1344 (response, content) = self.http.request(
1357 (response, content) = self.http.request(
1366 (response, content) = self.http.request(
1374 def reflector(self, content): argument
1375 return dict([tuple(x.split("=", 1)) for x in content.strip().split("\n")])
1379 (response, content) = self.http.request(uri, "GET")
1380 d = self.reflector(content)
1385 (response, content) = self.http.request(uri, "GET")
1388 (response, content) = self.http.request(
1800 content = ""
1803 credentials, host, request_uri, headers, response, content, None
1805 d.request("GET", request_uri, headers, content, cnonce="33033375ec278a46")
1826 content = ""
1829 credentials, host, request_uri, headers, response, content, None
1831 d.request("GET", request_uri, headers, content, cnonce="33033375ec278a46")
1855 content = ""
1857 credentials, host, request_uri, headers, response, content, None
1860 self.assertTrue(d.response(response, content))
1874 content = ""
1876 credentials, host, request_uri, headers, response, content, None
1879 self.assertFalse(d.response(response, content))