Re: CFHTTPMessageAddAuthentication problem
Re: CFHTTPMessageAddAuthentication problem
- Subject: Re: CFHTTPMessageAddAuthentication problem
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 02 Dec 2013 13:20:34 +0000
On 2 Dec 2013, at 02:12, Kevin Yu <email@hidden> wrote:
> Currently, I’m working on an application which needs to act as server and client role in the same time [...]
Wow, that's really messed up.
On 29 Nov 2013, at 04:33, Kevin Yu <email@hidden> wrote:
> I’ve a HTTP request and Response looks like the following:
How did you create the response? Some HTTP authentication methods require that the original URL be available in the response. This happens automatically for responses you get from CFHTTPStream (via kCFStreamPropertyHTTPResponseHeader) but does not happen automatically for responses you create yourself. The real kicker is that there's no public API to set this response URL; there's a fairly well-known private API, _CFHTTPMessageSetResponseURL, but that's not the same thing )-:
We're tracking this limitation as <rdar://problem/6980095>.
Please try using _CFHTTPMessageSetResponseURL and see if that gets authentication working. If it does, let me know and I'll update the bug to indicate your interest in a fix. And in that case the only /supported/ workaround is to implement Digest authentication yourself.
If _CFHTTPMessageSetResponseURL doesn't fix things, let me know and I'll see if I can dig up anything else from my giant pile of weird CFNetwork trivial.
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