import socket

client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(('127.0.0.1', 8000))

client.send("body".encode("utf8"))
data = client.recv(1024)
print('data', data)
print(data.decode('utf8'))
client.close()
