Re: [Twisted-Python] web client FileBodyProducer - transfer encoding

2017-01-30 Thread Glyph Lefkowitz
> On Jan 30, 2017, at 20:41, Kevin Mcintyre wrote: > > "It is shaped the same. The reason you're seeing the error is due to the > issue I pointed out above." > > Just to be clear you mean that proxies can reshape the call in flight? No, I mean that FileBodyObserver

Re: [Twisted-Python] web client FileBodyProducer - transfer encoding

2017-01-30 Thread Kevin Mcintyre
"It is shaped the same. The reason you're seeing the error is due to the issue I pointed out above." Just to be clear you mean that proxies can reshape the call in flight? On Mon, Jan 30, 2017 at 6:01 PM, Glyph Lefkowitz wrote: > > On Jan 30, 2017, at 19:44, Kevin

Re: [Twisted-Python] web client FileBodyProducer - transfer encoding

2017-01-30 Thread Glyph Lefkowitz
> On Jan 30, 2017, at 19:44, Kevin Mcintyre wrote: > On Mon, Jan 30, 2017 at 4:59 PM, Jean-Paul Calderone > > wrote: > > On Mon, Jan 30, 2017 at 7:44 PM, Glyph Lefkowitz

Re: [Twisted-Python] web client FileBodyProducer - transfer encoding

2017-01-30 Thread Kevin Mcintyre
Thanks - that's exactly what I was looking for. *But note* when using FileBodyProducer(StringIO(json.dumps(~blah))) -- I still see a content-length in the request header as it's received by twisted. Am I correct to assume the request is agnostic...meaning it's shaped the same for twisted as it

Re: [Twisted-Python] web client FileBodyProducer - transfer encoding

2017-01-30 Thread Jean-Paul Calderone
On Mon, Jan 30, 2017 at 7:44 PM, Glyph Lefkowitz wrote: > Gotcha. I guess what I meant was that you shouldn't care about this at > the application level, but you're talking about an operational concern, not > an application-level concern. > > Perhaps this should be a

Re: [Twisted-Python] web client FileBodyProducer - transfer encoding

2017-01-30 Thread Glyph Lefkowitz
Gotcha. I guess what I meant was that you shouldn't care about this at the application level, but you're talking about an operational concern, not an application-level concern. Perhaps this should be a tunable on Agent somehow. Can you file a ticket? -glyph > On Jan 30, 2017, at 18:16,

Re: [Twisted-Python] web client FileBodyProducer - transfer encoding

2017-01-30 Thread Glyph Lefkowitz
> On Jan 30, 2017, at 13:47, Kevin Mcintyre wrote: > > hey all - quick question. Trying to understand FileBodyProducer as it > pertains to POST. > json_body = FileBodyProducer(StringIO(json.dumps({'key': 'value'}))) > agent.request("POST", ~uri, Headers({'User-Agent':

[Twisted-Python] web client FileBodyProducer - transfer encoding

2017-01-30 Thread Kevin Mcintyre
hey all - quick question. Trying to understand FileBodyProducer as it pertains to POST. json_body = FileBodyProducer(StringIO(json.dumps({'key': 'value'}))) agent.request("POST", ~*uri*, Headers({'User-Agent': ['AkamaiTest']}), json_body) Does the agent chunk the POST body? Is this

Re: [Twisted-Python] Twisted Mailing List Archive Search

2017-01-30 Thread Роман Мещеряков
Thank you, Glyph. URL changed. -- Kind regards, Roman Mescheryakov   30.01.2017, 04:33, "Glyph Lefkowitz" :You should have edit permission now. -glyph On Jan 28, 2017, at 6:35 AM, Роман Мещеряков wrote: Yes, because now I can't see a link to