using urllib or httplib to post with ENCTYPE=mulitpart/form-data

Andrew Clover and-google at doxdesk.com
Thu Jun 5 06:21:07 EDT 2003


Kevin Carlson <khcarlso at bellsouth.net> wrote:

>   httpObj.putheader('Content-type', 'multipart/form-data; boundary=--AaB03x')

The boundary paramater should be included in the Content-Type header
without the leading double-hyphen.

(There is no '----AaB03x' in the body, so the submission is malformed.)

HTH!

-- 
Andrew Clover
mailto:and at doxdesk.com
http://www.doxdesk.com/




More information about the Python-list mailing list