• Home
  • Raw
  • Download

Lines Matching refs:httplib

1 import httplib
39 raise httplib.UnimplementedFileMode()
104 conn = httplib.HTTPConnection('example.com')
132 conn = httplib.HTTPConnection('example.com')
148 conn = httplib.HTTPConnection('example.com')
161 conn = httplib.HTTPConnection('example.com')
172 conn = httplib.HTTPConnection('example.com')
182 conn = httplib.HTTPConnection('example.com')
220 conn = httplib.HTTPConnection('[2001::]:81')
228 conn = httplib.HTTPConnection('[2001:102A::]')
238 resp = httplib.HTTPResponse(sock)
256 resp = httplib.HTTPResponse(FakeSocket(resp))
269 resp = httplib.HTTPResponse(FakeSocket(resp))
275 resp = httplib.HTTPResponse(FakeSocket(resp))
290 resp = httplib.HTTPResponse(FakeSocket(resp))
297 resp = httplib.HTTPResponse(FakeSocket(resp))
316 resp = httplib.HTTPResponse(FakeSocket(resp))
328 resp = httplib.HTTPResponse(FakeSocket(resp))
346 resp = httplib.HTTPResponse(sock)
359 conn = httplib.HTTPConnection('example.com')
394 resp = httplib.HTTPResponse(sock)
403 resp = httplib.HTTPResponse(sock)
404 self.assertRaises(httplib.BadStatusLine, resp.begin)
407 exc = httplib.BadStatusLine('')
415 resp = httplib.HTTPResponse(sock)
427 resp = httplib.HTTPResponse(sock)
440 resp = httplib.HTTPResponse(sock)
453 self.assertRaises(httplib.InvalidURL, httplib.HTTP, hp)
461 http = httplib.HTTP(hp)
481 r = httplib.HTTPResponse(s)
495 resp = httplib.HTTPResponse(sock, method="HEAD")
504 r = httplib.HTTPResponse(s)
505 self.assertRaises(httplib.HTTPException, r.begin)
512 conn = httplib.HTTPConnection('example.com')
528 conn = httplib.HTTPConnection('example.com')
536 conn = httplib.HTTPConnection('example.com')
558 resp = httplib.HTTPResponse(sock, method="GET")
565 resp = httplib.HTTPResponse(sock, method="GET")
569 except httplib.IncompleteRead, i:
588 resp = httplib.HTTPResponse(sock, method="HEAD")
598 resp = httplib.HTTPResponse(sock, method="GET")
605 resp = httplib.HTTPResponse(sock, method="GET")
609 except httplib.IncompleteRead as i:
625 conn = httplib.HTTPConnection("example.com")
638 resp = httplib.HTTPResponse(sock)
647 resp = httplib.HTTPResponse(FakeSocket(body))
648 self.assertRaises((httplib.LineTooLong, httplib.BadStatusLine), resp.begin)
655 resp = httplib.HTTPResponse(FakeSocket(body))
656 self.assertRaises(httplib.LineTooLong, resp.begin)
666 resp = httplib.HTTPResponse(FakeSocket(body))
668 self.assertRaises(httplib.LineTooLong, resp.read)
674 resp = httplib.HTTPResponse(sock)
681 conn = httplib.HTTPConnection('example.com')
683 class Response(httplib.HTTPResponse):
686 httplib.HTTPResponse.__init__(self, *pos, **kw)
690 self.assertRaises(httplib.BadStatusLine, conn.getresponse)
699 conn = httplib.HTTPConnection('example.com', strict=False)
707 self.assertEqual(httplib.responses[httplib.NOT_FOUND], "Not Found")
731 self.conn = httplib.HTTPConnection(HOST, self.port,
736 @unittest.skipIf(not hasattr(httplib, 'HTTPSConnection'),
739 self.conn = httplib.HTTPSConnection(HOST, self.port,
748 self.conn = httplib.HTTP(host=HOST, port=self.port, strict=None)
756 self.conn = httplib.HTTP(host=testhost, port=testport)
784 httpConn = httplib.HTTPConnection(HOST, TimeoutTest.PORT)
795 httpConn = httplib.HTTPConnection(HOST, TimeoutTest.PORT,
804 httpConn = httplib.HTTPConnection(HOST, TimeoutTest.PORT, timeout=30)
813 if not hasattr(httplib, 'HTTPSConnection'):
822 h = httplib.HTTPSConnection(HOST, TimeoutTest.PORT, timeout=30)
830 h = httplib.HTTPSConnection('self-signed.pythontest.net', 443)
841 h = httplib.HTTPSConnection('self-signed.pythontest.net', 443,
852 h = httplib.HTTPSConnection('www.python.org', 443)
866 h = httplib.HTTPSConnection('self-signed.pythontest.net', 443, context=context)
880 h = httplib.HTTPSConnection('self-signed.pythontest.net', 443, context=context)
889 h = httplib.HTTPSConnection('localhost', server.port)
901 h = httplib.HTTPSConnection('localhost', server.port, context=context)
914 h = httplib.HTTPSConnection('localhost', server.port, context=context)
920 h = httplib.HTTPSConnection('localhost', server.port, context=context)
929 self.assertRaises(httplib.InvalidURL, httplib.HTTPSConnection, hp)
939 c = httplib.HTTPSConnection(hp)
955 conn = httplib.HTTPConnection('proxy.com')