PDA

View Full Version : http digest




chhoda
Apr 4, 2009, 02:28 AM
Hi All,

I am kind of facing easibility question "expect the app to use HTTP Digest Authentication to store user credentials. And the app should be able to handle cookies for storing session ID". how this can be done in iphone?

regards
CH



jnic
Apr 6, 2009, 04:03 AM
HTTP Digest Authentication

Try NSURLProtectionSpace (http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSURLProtectionSpace_Class/Reference/Reference.html).

the app should be able to handle cookies for storing session ID

That's just a string, so either NSUserDefaults (http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSUserDefaults_Class/Reference/Reference.html) or a bit of SQLite if you require keeping more complex state.

chhoda
Apr 14, 2009, 07:10 AM
I would appreciate anybody sharing examples of NSURLProtectionSpace. usage.

I got his, but it seems https

http://devworld.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/index.html

--CH

chhoda
May 12, 2009, 04:26 AM
Hi All,


////////////