• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: HTTPBodyStream without chunked encoding?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >HTTPBodyStream without chunked encoding? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Exception using custom input stream for NSURLRequest
  • Next by Date: Re: Exception using custom input stream for NSURLRequest
  • Previous by thread: HTTPBodyStream without chunked encoding?
  • Next by thread: Proxy servers vs localhost
  • Index(es):
    • Date
    • Thread