Re: Does CFHTTPMessageAddAuthentication support digest auth?
Re: Does CFHTTPMessageAddAuthentication support digest auth?
- Subject: Re: Does CFHTTPMessageAddAuthentication support digest auth?
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 13 Jul 2015 09:31:33 +0100
On 1 Jul 2015, at 06:03, Jens Alfke <email@hidden> wrote:
> I’ve run into a problem with CFHTTPMessageAddAuthentication: it works fine with HTTP Basic auth challenges, but when I try to use it with a Digest auth challenge it fails (returns false.)
Where did you get the CFHTTPMessage from? If you got it from CFHTTPStream, Digest should work. If you got it from elsewhere--specifically, if you created it yourself using CFHTTPMessageCreateResponse or CFHTTPMessageCreateEmpty--you will run into problems because Digest needs to know the URL associated with the response and there's no public API for you to provide it. The following post, and its associated thread, has more details.
<http://lists.apple.com/archives/macnetworkprog/2013/Dec/msg00004.html>
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