Here is some code: import socket,sys s=socket.socket() port=int(sys.argv[1]) s.bind(("127.0.0.1",port)) s.listen(2) cls,addr=s.accept()
data=cls.recv(1024) f=data.pop("Proxy-Connection") cls.close() Im trying to delete some headers in the request but get an error saying: 'str' object has no attribute 'pop' How can I modify data received from the client? -- https://mail.python.org/mailman/listinfo/python-list