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 specifically calculates a

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 Mcintyre wrote: > > On Mon

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 > mailto:exar...@twistedmatrix.com>> wrote: > > On Mon, Jan 30, 2017 at 7:44 PM, Glyph Lefkowitz > wrote: > Gotcha. I guess what I meant was that you shoul

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 is

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 tunable on Agent somehow. C

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, Kevin

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

2017-01-30 Thread Kevin Mcintyre
Dealing with older apache, ruby, passenger setup. Hoping to mimic behavior and show OPS that chunked encoding isn't working correctly. With python requests (http://docs.python-requests.org/en/master/) all POST calls work correctly, but twisted requests are failing. I'm thinking (and hoping) it's

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': ['AkamaiTest']}), > json