Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 303 Bytes
if callfunc == 'initialize':
# open a connection to the google web server
socketobject = openconn("www.google.com",80)
# this is a HTTP request...
socketobject.send("GET /index.html HTTP/1.1\r\nHost: www.google.com\r\n\r\n")
while True:
print socketobject.recv(4096)