diff --git a/tcp_client.py b/tcp_client_split_call.py similarity index 78% rename from tcp_client.py rename to tcp_client_split_call.py index a78e0e5..f172769 100644 --- a/tcp_client.py +++ b/tcp_client_split_call.py @@ -7,7 +7,8 @@ client_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect(('{tcp_server_adress}', 80)) -request = f"GET / HTTP/1.1\r\nHost: {tcp_server_adress}\r\n\r\n" +request = f"GET / HTTP/1.1\r\n" +request = f"Host: {tcp_server_adress}\r\n\r\n" sock.sendall(request.encode()) buffer = b"" @@ -19,4 +20,4 @@ while True: print(buffer.decode()) -sock.close() \ No newline at end of file +sock.close()