String modifying error, trying to delete data in string
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
two html pages from twisted server
Could soneone show me a simple example of a twisted server that loads 2 html pages www..com:7899/page1/ www..com:7899/page2/ Thanx -- http://mail.python.org/mailman/listinfo/python-list
