Re: Force authentication with NSURLConnection
Re: Force authentication with NSURLConnection
- Subject: Re: Force authentication with NSURLConnection
- From: "Justin R. Miller" <email@hidden>
- Date: Fri, 16 Mar 2007 13:03:45 -0400
On Mar 16, 2007, at 12:57 PM, Justin R. Miller wrote:
Are you forming an NSURLRequest? Could you use its method:
-(NSString *)valueForHTTPHeaderField:(NSString *)field
to set your Accept-HTTP header?
Oh wait, I see what you mean. You still need a way to set the auth
credentials without ever being prompted for them. Hmm.
I don't think that it's a legitimate adherence to the HTTP rules.
Probably why Cocoa doesn't implement it... sorry that doesn't help
you, but I can't see a way to work around it strictly in Cocoa.
Maybe an NSTask using curl?
--
Justin R. Miller
Code Sorcery Workshop
http://codesorcery.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden