Re: CFNetwork is not adding Authorization: headers proactively
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