• 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
Getting HTTP response headers and status code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Getting HTTP response headers and status code
      • From: Dave Hersey <email@hidden>
  • Prev by Date: Arrows on NSBezierPaths
  • Next by Date: Re: NSTableView Row header
  • Previous by thread: Re: Arrows on NSBezierPaths
  • Next by thread: Re: Getting HTTP response headers and status code
  • Index(es):
    • Date
    • Thread