Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100729
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.us.feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!not-for-mail |
|---|---|
| From | Grant Edwards <invalid@invalid.invalid> |
| Newsgroups | comp.lang.python |
| Subject | Re: Library function to encode data to multipart/form-data format? |
| Date | Tue, 22 Dec 2015 15:14:55 +0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 19 |
| Message-ID | <n5bpdf$49g$1@reader1.panix.com> (permalink) |
| References | <n59e64$ct4$1@reader1.panix.com> <mailman.45.1450741438.2237.python-list@python.org> |
| NNTP-Posting-Host | 67-130-15-94.dia.static.qwest.net |
| X-Trace | reader1.panix.com 1450797295 4400 67.130.15.94 (22 Dec 2015 15:14:55 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Tue, 22 Dec 2015 15:14:55 +0000 (UTC) |
| User-Agent | slrn/1.0.2 (Linux) |
| Xref | csiph.com comp.lang.python:100729 |
Show key headers only | View raw
On 2015-12-21, Laura Creighton <lac@openend.se> wrote:
> 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.
[...]
> Cannibalise this:
> http://code.activestate.com/recipes/146306/
> which just uses standard library things.
Yep, that's what I ended up doing. I noticed that the code referenced
above doesn't check to make sure the boundary string is not contained
in the data, so I fixed that.
--
Grant Edwards grant.b.edwards Yow! I'm gliding over a
at NUCLEAR WASTE DUMP near
gmail.com ATLANTA, Georgia!!
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Library function to encode data to multipart/form-data format? Grant Edwards <invalid@invalid.invalid> - 2015-12-21 17:51 +0000
Re: Library function to encode data to multipart/form-data format? Laura Creighton <lac@openend.se> - 2015-12-22 00:43 +0100
Re: Library function to encode data to multipart/form-data format? Grant Edwards <invalid@invalid.invalid> - 2015-12-22 15:14 +0000
csiph-web