Not able to download image using HttpURLConnection
<p>I am trying download file <a href="http://images.anandtech.com/doci/5434/X79%20Extreme9Box_575px.jpg" rel="nofollow">http://images.anandtech.com/doci/5434/X79%20Extreme9Box_575px.jpg</a></p>

<p>but not able to download it using HttpUrlConnection, ImageIO.read and even in php using file_get_contents.</p>

<p>I am not able to figure it out why this is happening but if I check this link in browser then header response is 200 both in firefox as well as opera</p>

<p>Please help me  </p>

<p>Now I notice that I am receiving 400 code.</p>

<p>Exception in thread "main" java.io.IOException: Server returned HTTP response code: 400 for URL: <a href="http://images.anandtech.com/doci/5478/Screen" rel="nofollow">http://images.anandtech.com/doci/5478/Screen</a> Shot 2012-01-30 at 4.21.52 PM_575px.png
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)</p>
