Getting HTTP response headers and status code
Getting HTTP response headers and status code
- Subject: Getting HTTP response headers and status code
- From: Marco Michieli <email@hidden>
- Date: Sun, 8 Feb 2004 17:08:13 +0100
I need some help!
I would like to get the HTTP response headers and status code to a URL
load request.
I know that there are specific methods in NSHTTPURLResponse to do that:
allHeaderFields
+ localizedStringForStatusCode:
statusCode
But what I can't get is an instance of NSHTTPURLResponse: in fact when
I create the connection (that is a NSURLConnection) the delegate method:
connection:didReceiveResponse:
gives a response that is just a NSURLResponse and so I can't use such
methods.
Should be very easy, but I can't figure out how to get it work.
Any suggestion?
Thanks in advance
Marco
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.