Thursday, July 8, 2010

HTTP Basic Authentication on the iPhone

I can't steal credit for this one. I just wanted to pass along this excellent link to a post titled Objective-C and HTTP  Basic Authentication. It still amazes me that the iPhone SDK doesn't have base 64 encoding built in... but at least some smart folks out there have gone through the trouble of putting it together for us.

What I ended up doing was putting the encode function in my parent REST client class, then I was able to call it as necessary in my subclasses.

No comments:

Post a Comment