import httplib print "creating connection" conn = httplib.HTTPConnection('localhost', 18080) print "connection created, sending request" body = "" headers = { } conn.request("GET", "/RELEASE-NOTES.txt", body, headers) print "request send" response = conn.getresponse() print response