Re: HTTPBodyStream without chunked encoding?
Re: HTTPBodyStream without chunked encoding?
- Subject: Re: HTTPBodyStream without chunked encoding?
- From: Jens Alfke <email@hidden>
- Date: Sun, 05 Feb 2012 13:16:28 -0800
On Feb 5, 2012, at 12:30 PM, Jens Alfke wrote: So I’m wondering if there’s any way to get CFNetwork to send the request un-chunked. Of course it has to if the stream's length isn’t known, but I already know how long the stream is going to be, so could I set the Content-Length myself or something?
Duh, should have tried it out instead of asking. For posterity, the answer is yes — if you set a Content-Length header, CFNetwork will not chunk-encode the body. Whew. Now my code can successfully upload.
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden