i wonder how can you update your NSURL to the last url that a your url will redirect to
using NSURL or NSRequest
appreciate your help. thanks.
i wonder how can you update your NSURL to the last url that a your url will redirect to
using NSURL or NSRequest
appreciate your help. thanks.
zanque's solution works, but in order to avoid downloading "useless" data, I'd change the http method to HEAD :
i did it,
here is how
You'll only be able to find this out after trying to connect using NSURLConnection. If you add a method to your NSURLConnection delegate, -connection:willSendRequest:redirectResponse:, you'll be notified before redirects happen. Just grab the URL from the passed request, and that's your answer.