iPhone HTTP Cookie support

In trying to figure out how to get the cookies from the headers in HTTP and then return them on subsequent calls, I found this…


NSHTTPCookieStorage *cookies = [NSHTTPCookieStorage sharedHTTPCookieStorage];
[cookies setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways];

Works like a champ. 🙂