• 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: CFNetwork is not adding Authorization: headers proactively
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFNetwork is not adding Authorization: headers proactively


  • Subject: Re: CFNetwork is not adding Authorization: headers proactively
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Tue, 23 Feb 2016 07:16:16 +0000

On 22 Feb 2016, at 19:57, Wim Lewis <email@hidden> wrote:

> The other thing that a well-written client can do in that case is make use of the "Expect: continue" header to allow the server to accept or reject the request (or request authorization) before the large POST/PUT body is sent. I don't know offhand if there's a way to get CFNetwork to do that.

IIRC CFNetwork supports this; all you have to do is add the right header to your request.

[request setValue:@"100-continue" forHTTPHeaderField:@"Expect"];

Note that it's "100-continue", not "continue".

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware



 _______________________________________________
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: 
 >CFNetwork is not adding Authorization: headers proactively (From: Jens Alfke <email@hidden>)
 >Re: CFNetwork is not adding Authorization: headers proactively (From: Wim Lewis <email@hidden>)

  • Prev by Date: Re: What does NSURLCredentialPersistenceForSession mean, exactly?
  • Next by Date: Re: CFNetwork is not adding Authorization: headers proactively
  • Previous by thread: Re: CFNetwork is not adding Authorization: headers proactively
  • Next by thread: What does NSURLCredentialPersistenceForSession mean, exactly?
  • Index(es):
    • Date
    • Thread