Twitter NSURLConnection Authentication
Twitter NSURLConnection Authentication
- Subject: Twitter NSURLConnection Authentication
- From: "Alan Smith" <email@hidden>
- Date: Wed, 12 Sep 2007 12:58:54 -0400
Hello everyone,
I have been fiddling around with the Twitter API and NSURLConnection.
The current problem is that when "requesting"
http://twitter.com/statuses/user_timeline.xml the
connection:didReceiveAuthenticationChallenge: never gets called.
However, I do get some data back, a HTML header saying "Status = 401
Unauthorized." I could do
username:password@http://twitter.com/statuses/user_timeline.xml but I
use the same delegate methods for URLs that doesn't require
authentication and I don't want to give out the username and password
unless I have to.
Somehow Safari can load the URL mentioned, somehow it realizes that it
needs the username and password so asks for them. How can I tell the
same thing for any given URL?
Thanks, Alan
--
My blog: cocoalatte.info
// Things I've said -------------------------
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"When the World realizes that personal beliefs are not something to
argue or fight over, it shall evolve."
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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