• 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
how to get response code on HTTP request synchronous
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to get response code on HTTP request synchronous


  • Subject: how to get response code on HTTP request synchronous
  • From: Wilker <email@hidden>
  • Date: Thu, 11 Aug 2011 00:40:12 -0300

I'm trying to get the response code from an synchronous http request, Im
trying the following code:

    NSURLResponse *response = nil;

    NSData *data = [NSURLConnection sendSynchronousRequest:request
returningResponse:&response error:err]

But I can't find any method on NSURLRespond that has the HTTP response code.
There is any way to get this information?
---
Wilker LĂșcio
http://about.me/wilkerlucio/bio
Kajabi Consultant
+55 81 82556600
_______________________________________________

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

  • Follow-Ups:
    • Re: how to get response code on HTTP request synchronous
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: Using #define a good way for String constants, like enums for NSIntegers?
  • Next by Date: Re: how to get response code on HTTP request synchronous
  • Previous by thread: [MEET] CocoaHeadsNYC this Thursday (tomorrow)
  • Next by thread: Re: how to get response code on HTTP request synchronous
  • Index(es):
    • Date
    • Thread