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

Andrew Clover and-google at
Thu Jun 5 12:21:07 CEST 2003

Kevin Carlson <khcarlso at> 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.)


Andrew Clover
mailto:and at

More information about the Python-list mailing list