On Jun 9, 2013, at 5:54 AM, Jean-Daniel Dupas <devli...@shadowlab.org> wrote:
> The NSConnectionDelegate protocol has a method that pass you the response: > > - (void)connection:(NSURLConnection *)connection > didReceiveResponse:(NSURLResponse *)response > > You can test if the response is of type NSHTTPURLResponse (which should > always be the case when you send an HTTP request), and then use the > -[NSHTTPURLResponse statusCode] method to get the status. A much better solution than what I proposed! - Koen. _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com