The title to this question says it all. NSURLRequest + NSHTTPURLResponse is clearly the way to role. How do I just grab the header info?
Cheers, Doug
The title to this question says it all. NSURLRequest + NSHTTPURLResponse is clearly the way to role. How do I just grab the header info?
Cheers, Doug
⌘-doubleclick on a reference to "NSHTTPURLResponse" in your code, and it will show you the documentation.
Calling allHeaderFields on your NSHTTPURLResponse will return them as a dictionary.
[response allHeaderFields]
where response is your NSHTTPURLResponse object.