[Twisted-Python] POSTing http requests

March 10, 2005
11:46 p.m.
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
7425
Age (days ago)
7425
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lenny G Arbage