String modifying error, trying to delete data in string

2014-03-24 Thread mikie
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

two html pages from twisted server

2009-09-29 Thread Mikie
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