Thanks Andy :)
---
Wilker LĂșcio
http://about.me/wilkerlucio/bio
Kajabi Consultant
+55 81 82556600



On Thu, Aug 11, 2011 at 12:46 AM, Andy Lee <ag...@mac.com> wrote:

> I think instead of NSURLResponse you want to use NSHTTPURLResponse, which
> has a statusCode method.
>
> --Andy
>
> On Aug 10, 2011, at 11:40 PM, Wilker wrote:
>
> > 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 (Cocoa-dev@lists.apple.com)
> >
> > 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:
> > http://lists.apple.com/mailman/options/cocoa-dev/aglee%40mac.com
> >
> > This email sent to ag...@mac.com
>
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to