Setting up TCP Proxy

Greetings @Josh.
I have a simple TCP Server (Using Python Socket Programming) and I’m trying to make a GET call, wherein I will be able to receive the connection string.

Sharing the TCP Server Program below:

#!/usr/bin/env python3
import socket
HOST = ‘127.0.0.1’
PORT = 65432
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind((HOST, PORT))
s.listen()
conn, addr = s.accept()
with conn:
print(‘Connected by’, addr)
while True:
data = conn.recv(1024)
if not data:
break
conn.sendall(data)