how can I strip it?
amou
mouyg at neusoft.com
Fri Mar 5 10:06:52 EST 2004
Hi~
I wrote a funtion to sent a cgi request and recieve a string, like this:
#~
import httplib, mimetools
requestor = httplib.HTTP('192.168.5.253',80)
requestor.putrequest('post','/cgi-bin/vma.py?content=url&argument=aafaa')
requestor.putheader('Host', '192.168.5.253')
requestor.endheaders()
(status_code, message, reply_headers) = requestor.getreply()
reply_body = requestor.getfile().read()
#print status_code
#print message
print reply_body
#print len(reply_body)
#~
when I reveive a string, len(reply_body) is allways 2 bigger then it was sent.
why?
More information about the Python-list
mailing list