Uploading forms+files via Python script -- no luck
Karl Ulbrich
karl_python at sub.ulbrich.org
Thu Jul 27 20:42:32 EDT 2000
For anyone interested in the solution... I screwed up something when
adapting my (working) starting point to the code I posted.
The MIME boundary specified in the header starts with "-----" (this may be
an arbitrary number, but 5 works).
However, boundaries in the BODY have to start with an extra 2 hyphens,
so they need to start with "-------".
Furthermore, the last boundary ends with an extra "--" in the working
code example I had.
Strange but true MIME stuff. I gave up on the RFC, so that's just a
what-worked-for-me solution, assumed to be basically correct.
Karl Ulbrich
More information about the Python-list
mailing list