Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100707

Re: Library function to encode data to multipart/form-data format?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Laura Creighton <lac@openend.se>
Newsgroups comp.lang.python
Subject Re: Library function to encode data to multipart/form-data format?
Date Tue, 22 Dec 2015 00:43:45 +0100
Lines 21
Message-ID <mailman.45.1450741438.2237.python-list@python.org> (permalink)
References <n59e64$ct4$1@reader1.panix.com>
Mime-Version 1.0
Content-Type text/plain; charset="us-ascii"
X-Trace news.uni-berlin.de etv9mMw6+lkNHOcSQwiVzQEXjAY6S6GzOIN5A7vqY1kQ==
Return-Path <lac@openend.se>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:form': 0.07; 'cc:addr:python-list': 0.09; 'encode': 0.09; 'format?': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'things.': 0.15; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:multipart': 0.16; 'looked': 0.16; 'laura': 0.18; 'library': 0.20; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; 'dec': 0.23; 'sets': 0.23; 'this:': 0.23; 'mon,': 0.24; 'function': 0.28; 'received:se': 0.29; 'url:activestate': 0.29; 'cc:no real name:2**1': 0.29; 'subject:/': 0.30; 'url:mailman': 0.30; "we're": 0.30; 'post': 0.31; 'url:python': 0.33; 'http': 0.33; 'url:listinfo': 0.34; 'url:code': 0.34; 'library.': 0.35; 'there': 0.36; 'url:org': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'anything': 0.38; 'test': 0.39; 'data': 0.39; "didn't": 0.39; 'subject:-': 0.39; 'url:mail': 0.40; 'header :Message-Id:1': 0.61; 'header:In-reply-to:1': 0.84; 'url:recipes': 0.84; 'edwards': 0.91
Authentication-Results theraft.openend.se; dkim=none reason="no signature"; dkim-adsp=none (insecure policy); dkim-atps=neutral
In-reply-to <n59e64$ct4$1@reader1.panix.com>
Comments In-reply-to Grant Edwards <invalid@invalid.invalid> message dated "Mon, 21 Dec 2015 17:51:00 +0000."
Content-ID <7299.1450741425.1@theraft.openend.se>
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [127.0.0.1]); Tue, 22 Dec 2015 00:43:48 +0100 (CET)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:100707

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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