Keary,

Although I still get an xcode warning about NSURLResponse not responding to "allHeaderFields" I DID get a response AND a Set-Cookie when I saved the response and did the "allHeaderFields" in the "didFinishLoadingFromDataSource" delegate. So you were right about the timing. Now I will have to do some more experimenting to relate the cookie to the correct data source.

Thanks,
theGeezer
On Jul 17, 2010, at 4:59 PM, Keary Suska wrote:

On Jul 17, 2010, at 1:16 PM, The Geezer wrote:

I have an application I wrote for testing which has a WebView.
Everything works fine, however, I would like to be able to log the HTTP Header Fields "Cookie" and "Set-Cookie". I seem to be able to access and log every http header except the cookie headers. They don't even show up using [(NSURLRequest *)request allHeaderFields] in the WebView delegates which pass the request field.
Anyone have any idea how these fields can be accessed?

Juts to be clear, "Cookie" headers only show in requests, and "Set- cookie" only in responses. Are you able to see "Set-cookie" headers in the NSURLResponse?

As for the request, when are you checking for cookie headers? It might be that you are checking too soon.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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