Library function to encode data to multipart/form-data format?
Laura Creighton
lac at openend.se
Mon Dec 21 18:43:45 EST 2015
In a message of Mon, 21 Dec 2015 17:51:00 +0000, Grant Edwards writes:
>Is there a standard library function that can be used to encode data
>into multipart/form-data format? IIRC, I looked for this once before
>and didn't find anything in the library.
>
>[I don't want to actually send an HTTP POST or an email message, I
>just need to generate sets of data for test purposes.]
>
>--
>Grant Edwards grant.b.edwards Yow! -- I love KATRINKA
> at because she drives a
> gmail.com PONTIAC. We're going
> away now. I fed the cat.
>--
>https://mail.python.org/mailman/listinfo/python-list
Cannibalise this:
http://code.activestate.com/recipes/146306/
which just uses standard library things.
Laura
More information about the Python-list
mailing list