Hello,

I'm trying to create a NSHTTPCookie with this code:

        //dictionary of attributes for the new cookie
NSDictionary *newCookieDict = [NSMutableDictionary dictionaryWithObjectsAndKeys:@".example.com", NSHTTPCookieDomain,
                                                                   @"Test 
Cookie", NSHTTPCookieName,
                                                                   @"/", 
NSHTTPCookiePath,
                                                                   
@"test12345", NSHTTPCookieValue,
                                                                   @"2010-05-03 
21:02:41 -0700", NSHTTPCookieExpires, nil];
        //create a new cookie
NSHTTPCookie *newCookie = [NSHTTPCookie cookieWithProperties:newCookieDict];
        
        //add the new cookie
        [[NSHTTPCookieStorage sharedHTTPCookieStorage] setCookie:newCookie];

When I try to set the newly created cookie to the sharedHTTPCookieStorage it doesn't ever get set. Am I doing something wrong?

Thanks!
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to