Re: NSURLConnection oddity
Re: NSURLConnection oddity
- Subject: Re: NSURLConnection oddity
- From: Scott Anguish <email@hidden>
- Date: Sun, 11 Apr 2004 00:44:01 -0400
On Apr 10, 2004, at 9:51 AM, John Timmer wrote:
Greetings -
I've got a bit of code that sends a URL loading request. It modifies
the
request in a couple of ways depending on some variables. The code
works,
because it successfully loads some of the cases. The URL is formatted
properly, because if I log it to console and paste it into Safari, it
loads
properly. In one specific case, though, I can't get any data out of
it.
Internally, the connection's delegate method "connection:
didReceiveData:"
never gets called. It goes straight to "connectionDidFinishLoading:",
and
there's no data there. I do get the "connection: didReceiveResponse:"
called, but I'm not sure what to do with that.
You should check the response codes in the NSURLResponse that you get
back from the connection:didReceiveResponse:
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.