Re: [Twisted-Python] Twisted web, giant-file POST forwarding and early bail-out.

2013-07-12 Thread Michael Schlenker
Am 09.07.2013 13:40, schrieb Itamar Turner-Trauring: > On 07/09/2013 07:30 AM, Itamar Turner-Trauring wrote: >> HTTP clients can send a "Expects: 100-continue" header (or something >> like that), which tells the server it should give an early rejection >> or acceptance before the client sends the d

Re: [Twisted-Python] Twisted web, giant-file POST forwarding and early bail-out.

2013-07-10 Thread Glyph
On Jul 9, 2013, at 4:30 AM, Itamar Turner-Trauring wrote: > On 07/09/2013 04:04 AM, Rob Meijer wrote: >> 3) When the token does not check out, or the connection to the server >> fails, it remains a mystery to me how I should throw an error in such a >> way that it allows me to send a proper erro

Re: [Twisted-Python] Twisted web, giant-file POST forwarding and early bail-out.

2013-07-09 Thread Itamar Turner-Trauring
On 07/09/2013 07:30 AM, Itamar Turner-Trauring wrote: HTTP clients can send a "Expects: 100-continue" header (or something like that), which tells the server it should give an early rejection or acceptance before the client sends the data, in *addition* to the final response. You would still ne

Re: [Twisted-Python] Twisted web, giant-file POST forwarding and early bail-out.

2013-07-09 Thread Itamar Turner-Trauring
On 07/09/2013 04:04 AM, Rob Meijer wrote: 3) When the token does not check out, or the connection to the server fails, it remains a mystery to me how I should throw an error in such a way that it allows me to send a proper error message to the client, while not having to first accept the whole la

Re: [Twisted-Python] Twisted web, giant-file POST forwarding and early bail-out.

2013-07-09 Thread Tristan Seligmann
On Tue, Jul 9, 2013 at 10:41 AM, Phil Mayers wrote: > This is sort of a problem with HTTP. The client will probably keep sending > the data. > Yes, the only way you can interrupt the client while it is sending a request is to close the connection, which means that the client will not read any err

Re: [Twisted-Python] Twisted web, giant-file POST forwarding and early bail-out.

2013-07-09 Thread Phil Mayers
On 07/09/2013 09:04 AM, Rob Meijer wrote: Hi everyone, I'm working on what is just my second project using Twisted-Web, so I'm still a relative newbee on the subject. I'm working on a project that uses Twisted Web as a simple authorization proxy. All requests to my proxy contain an authorizatio

[Twisted-Python] Twisted web, giant-file POST forwarding and early bail-out.

2013-07-09 Thread Rob Meijer
Hi everyone, I'm working on what is just my second project using Twisted-Web, so I'm still a relative newbee on the subject. I'm working on a project that uses Twisted Web as a simple authorization proxy. All requests to my proxy contain an authorization-token and are either handled by the proxy,