# # Example program, to be used with thermoserver.py # import socket def main(): # make a new socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # connect to a (IP, port) combination s.connect(("127.0.0.1", 80)) #pull the response response = s.recv(1024) print "Response was " + response main()