Catch exception for renavigating webpage with httpsocket

I don’t actually know why my app crashes when downloading the image from this URL using httpsocket:,d.d2k&psig=AFQjCNG8bWBeAqDJHoVaHJVTZeXfV_EZgA&ust=1384121871890350

It is just a completely random URL. The crash I think may have something to do with the re-navigation of the page. How do I catch this as an exception or maybe even better, re-navigate the download from one URL to another, thanks.

Look for the Location HTTP header, it should tell you where to find the file.