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


Groups > comp.lang.python > #94947

Re: Parsing multipart HTTP response

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'url:pypi': 0.03; 'from:addr:yahoo.co.uk': 0.05; 'preferably': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'appropriate': 0.14; 'headers': 0.15; 'gilles': 0.16; 'hint': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:multipart': 0.16; 'term.': 0.16; 'wrote:': 0.16; 'language': 0.19; 'lawrence': 0.22; 'parsing': 0.22; 'header:In- Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'appreciated.': 0.27; 'yields': 0.29; 'language.': 0.32; 'url:python': 0.33; 'http': 0.33; 'but': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'hi,': 0.38; 'google': 0.39; "didn't": 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'field': 0.60; 'url:3': 0.60; 'charset:windows-1252': 0.62; 'url:0': 0.63; 'our': 0.64; 'capable': 0.65; 'friends': 0.82; 'hardly': 0.84; 'pythonistas,': 0.84; 'subject:response': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Parsing multipart HTTP response
Date Mon, 3 Aug 2015 16:39:09 +0100
References <648c131d-6315-4f83-88f0-b87bf3b530a9@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-78-147-187-35.as13285.net
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
In-Reply-To <648c131d-6315-4f83-88f0-b87bf3b530a9@googlegroups.com>
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>
Newsgroups comp.lang.python
Message-ID <mailman.1195.1438616367.3674.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1438616367 news.xs4all.nl 2857 [2001:888:2000:d::a6]:40579
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:94947

Show key headers only | View raw


On 03/08/2015 16:01, Gilles Lenfant wrote:
> Hi,
>
> I searched without succeeding a Python resource that is capable of parsing an HTTP multipart/mixed response stream, preferably as a generator that yields headers + content for each part.
>
> Google and friends didn't find or I didn't use the appropriate term.
>
> Any hint will be appreciated.
> --
> Gilles Lenfant
>

Hardly my field but how about:-

https://pypi.python.org/pypi/requests-toolbelt/0.3.1
https://pypi.python.org/pypi/multipart/

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

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


Thread

Parsing multipart HTTP response Gilles Lenfant <gilles.lenfant@gmail.com> - 2015-08-03 08:01 -0700
  Re: Parsing multipart HTTP response Gilles Lenfant <gilles.lenfant@gmail.com> - 2015-08-03 08:05 -0700
  Re: Parsing multipart HTTP response Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-08-03 16:39 +0100
    Re: Parsing multipart HTTP response Gilles Lenfant <gilles.lenfant@gmail.com> - 2015-08-03 10:15 -0700

csiph-web