[Twisted-Python] POSTing http requests

Lenny G Arbage alengarbage at yahoo.com
Thu Mar 10 16:46:42 MST 2005


How do I correctly set up the payload for a POST file
upload?  I see that I can add a "method='POST'" and
"postdata=something" to getPage(), but it's that
'something' that I'm stuck on.  I'm wondering if there
isn't a convenience method for putting the right stuff
in the HTTP header (Content-Type: multipart...") and
in the body (-----seperator, etc).

I haven't been able to find an answer in the mailing
list for the above (and google doesn't seem to know,
either), but I'm sure there's a really simple way to
do it.

    Thanks in advance
    Lenny G.


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250




More information about the Twisted-Python mailing list