Re: HTTP (NTLM) authentication with Cocoa
Re: HTTP (NTLM) authentication with Cocoa
- Subject: Re: HTTP (NTLM) authentication with Cocoa
- From: Mark Pauley <email@hidden>
- Date: Wed, 2 Jul 2008 13:53:50 -0700
Oh right! Sorry, I should have read your example more carefully.
what you want to use is
setCredential will indeed add your credential to the credential store, but it will not be automatically used by NSURLConnection and friends unless you specify that it is the new default credential for that protection space.
_Mark
On Jul 2, 2008, at 1:36 PM, Jens Alfke wrote: On 1 Jul '08, at 11:52 AM, Mark Pauley wrote: When your NSURLConnection delegate gets an auth challenge message, you need to send -useCredential:forAuthenticationChallenge: to the connection, or we'll go along on our merry way without checking the credential store again.
He's using +sendSynchronousRequest:, so there's no delegate. But the synchronous mode should use credentials already in the store, right? —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