Handle errors within NSURLConnection
Handle errors within NSURLConnection
- Subject: Handle errors within NSURLConnection
- From: Dennis Davydenko <email@hidden>
- Date: Sun, 27 Jul 2008 17:03:17 -0700
Hi guys!
I'm kinda new to Cocoa framework. I'm trying to create an
application that will send requests to my web server. Everything is
cool, except error handling. I would assume that any error while
request is being sent should trigger didFailWithError, but it seems
it is not what happening. Instead I got connectionDidFinishLoading
and no errors. I tried to use didReceiveResponse and extract
statusCode of response - that worked, but if I want to handle all
possible HTTP error statuses (like 401, 403, 404, 500 and so on) I
will have to create all this handling on my own... I think I'm
missing something here - there should be some classes that are
implemented to perform this job... or I'm too naive?
Any advices are appreciated!
Thanks,
Dennis Davydenko
_______________________________________________
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