sock.write("GET / HTTP/1.1\r\nHost: " + host + "\r\n\r\n") print sock.read()