Re: NSURLConnection constantly redirecting
Re: NSURLConnection constantly redirecting
- Subject: Re: NSURLConnection constantly redirecting
- From: Keary Suska <email@hidden>
- Date: Thu, 19 Apr 2007 10:44:25 -0600
- Thread-topic: NSURLConnection constantly redirecting
on 4/18/07 1:19 PM, email@hidden purportedly said:
> For certain sites the delegate method for NSURLConnection constantly
> receives redirection calls. It never stops even after data has been
> received and the object has been released.
You are not getting an answer because no one has experienced this problem
with otherwise properly functioning code and/or you haven't described the
problem in specific enough terms for anyone to help.
> It never stops even after data has been received and the object has been
> released.
What do you mean by "data received"? Do you mean after having received a
-connectionDidFinishLoading: message? That's the only message that tells you
all data has been loaded. What object is released? The delegate? The
connection? Are you sure the connection has completed before you are
releasing, or at least calling -cancel on it? You may be ending the process
prematurely. Have you tried to log the URLs and NSURLResponse to trace what
is happening? Have you used the debugger to trace the issue? Have you
thoroughly read and understand the use of NSURLConnection as explained in
the docs ("URL Loading System", locally:
file:///Developer/ADC Reference Library/documentation/Cocoa/Conceptual/U
RLLoadingSystem/index.html#//apple_ref/doc/uid/10000165i)?
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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