Lines Matching refs:http
10 import http.client
11 import http, http.server
308 class RequestHandler(http.server.BaseHTTPRequestHandler):
309 protocol_version = "HTTP/1.1"
320 self.send_response(http.HTTPStatus.OK)
336 server = http.server.HTTPServer((support.HOST, 0), RequestHandler)
341 url = "http://{}:{}/".format(*server.server_address)
617 URL = "http://%s:%d"%(ADDR, PORT)
687 URL = "http://%s:%d"%(ADDR, PORT)
822 # send POST with http.client, it should return 404 header and
824 conn = http.client.HTTPConnection(ADDR, PORT)
937 server = xmlrpclib.ServerProxy("http://%s:%d/RPC2" % (ADDR, PORT))
942 server = xmlrpclib.ServerProxy("http://%s:%d/RPC2" % (ADDR, PORT))
947 conn = http.client.HTTPConnection(ADDR, PORT)
948 conn.request('POST', '/RPC2 HTTP/1.0\r\nContent-Length: 100\r\n\r\nbye')
1006 #A test case that verifies that a server using the HTTP/1.1 keep-alive mechanism
1013 protocol_version = 'HTTP/1.1'
1030 #A test case that verifies that a server using the HTTP/1.1 keep-alive mechanism
1091 protocol_version = 'HTTP/1.1'
1179 self.url = 'http://fake.localhost'
1193 class FailingMessageClass(http.client.HTTPMessage):
1220 default_class = http.client.HTTPMessage
1344 # start with 44th char so as not to get http header, we just
1351 # Test for bug: http://bugs.python.org/issue5040