allow url client to follow redirects before checking response code

getInputStream is the method that follows redirects, so we need to call that first to get to the final URL before checking the status code.

evidence: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7u40-b43/sun/net/www/protocol/http/HttpURLConnection.java/