Clean up DownloadUtils.java

 * Use HEAD request if checking status code
 * Use getResponseCode() instead of parsing TCP stream directly