• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WebView and Headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebView and Headers


  • Subject: Re: WebView and Headers
  • From: The Geezer <email@hidden>
  • Date: Sat, 17 Jul 2010 18:50:40 -0400

I have tried the [(NSURLRequest *)request allHeaderFields] in every delegate which has request as a parameter but still get everything but the cookie.
I get a warning on the compile and an error on the execute if I try allHeaderFields or valueForHTTPHeaderField on a NSURLResponse.


But I am assuming from your response that I should be able to access these fields in the WebView delegates, right?

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 (email@hidden)

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:
This email sent to email@hidden


References: 
 >WebView and Headers (From: The Geezer <email@hidden>)
 >Re: WebView and Headers (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Initializing unichar variable with a human readable letter
  • Next by Date: Add Tick Mark in NSCombobox List
  • Previous by thread: Re: WebView and Headers
  • Next by thread: Re: WebView and Headers
  • Index(es):
    • Date
    • Thread