Re: NSURLConnection connectionDidFailWithError: hides server response
Re: NSURLConnection connectionDidFailWithError: hides server response
- Subject: Re: NSURLConnection connectionDidFailWithError: hides server response
- From: John Fox <email@hidden>
- Date: Wed, 5 Oct 2005 14:46:21 -0700
Hi Brian:
Thanks a lot for replying. I'm using NSURLConnection, so the
corresponding delegate method is:
- (void)connection:(NSURLConnection *)connection didReceiveResponse:
(NSURLResponse *)response
This method never gets called. The only method that gets invoked is
the connectionDidFailWithError:
I'm using Interarchy which has a nice packet sniffer which shows me
what the server is actually sending back (which in this case is a
SOAP Fault response with an HTTP status of "500"). What I want to get
at is the actual SOAP message which is in the body of the response.
Am I missing something?
John
On Oct 5, 2005, at 2:26 PM, Brian Bergstrand wrote:
(void)download:(NSURLDownload *)download didReceiveResponse:
(NSURLResponse *)response
{
if ([response respondsToSelector:@selector(statusCode)] {
int status = [(NSHTTPURLResponse*)response statusCode]);
// ...
}
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden