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:
https://www.google.co.uk/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&docid=3YjRmGRiZN8NrM&tbnid=J5_9A8Nspvm-CM:&ved=0CAUQjRw&url=https%3A%2F%2Fnewrelic.com%2Fdocs%2Fplugin-dev%2Fcreating-summary-metrics-for-plugins&ei=nbR-UpWCC-W_0QXqsoDgDw&bvm=bv.56146854,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.

Thanks