[Twisted-Python] Doing HTTP file uploads (multipart forms)

Itamar Turner-Trauring itamar at itamarst.org
Fri Jul 6 09:05:26 EDT 2012

On 07/06/2012 07:42 AM, Phil Mayers wrote:
> On 06/07/12 10:52, Laurens Van Houtven wrote:
>> Aha, okay, so that's that possible culprit off the table. Thanks!
>> FWIW: Chunked transfer encoding *should* work with twisted.web.server, right?
> Good question. Unfortunately the Trac implementation is running slowly
> so I can't browse the HEAD code, but in my local copy I don't see any
> sign of chunked encoding handling in the client->server direction i.e.
> for request body.

The server definitely supports chunked encoding; see 
> I'm not even sure chunked encoding is *legal* in HTTP request bodies;
> which client is generating this format?
It is legal: "All HTTP/1.1 applications MUST be able to receive and 
decode the "chunked" transfer-coding, and MUST ignore chunk-extension 
extensions they do not understand."

More information about the Twisted-Python mailing list