My apps…

Space Harvest Begin

All-Seeing Interactive is a tiny web design and software company based in London, UK.

Saturday 13 September 2008

ASIHTTPRequest update: Cookies and Timeouts

ASIHTTPRequest now has cookie support, which should help people wanting to talk to servers that manage authentication with a session cookie. I’d originally rolled by own cookie support, before realising that Apple had done all this work for me with NSHTTPCookie and NSHTTPCookieStorage (DOH!). Just in case it’s useful to someone for something else, there’s a PHP port of my cookie header parsing code here.

I’ve also added the ability to configure timeouts for when requests take too long. No idea why it took me so long to realise this would be useful.

Posted by Ben @ 11:42 AM