Re: Parsing "Set-Cookie" HTTP Response
Re: Parsing "Set-Cookie" HTTP Response
- Subject: Re: Parsing "Set-Cookie" HTTP Response
- From: Jerry Krinock <email@hidden>
- Date: Mon, 19 Mar 2007 17:16:35 -0700
- Thread-topic: Parsing "Set-Cookie" HTTP Response
Well, it turns out that -[NSHTTPCookie initWithProperties] will not bake you
a cookie if the ingredients don't include a "Domain" property. This is
probably the underlying reason why it was reported that
+cookiesWithResponseHeaderFields:forURL: omits such cookies; it probably
sends -initWithProperties to make the cookies after it is done parsing.
For my application, it looks like I can get away with ignoring such cookie
ingredients in "Set-Cookie" anyhow, so I'm off the hook for now.
Just don't spend hours making a nice parser to replace
+cookiesWithResponseHeaderFields:forURL. :(
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden