title: How to download an Image directly from the URL in some websites?
body: <p>I was trying to download this image, directly from the full path. When I try it throw Firefox, I'm redirected to the initial page.
  But into some Manga, i could see the url from image, and it's that one...
  I'm using the code below... Someone knows why it's happening?</p>
  
  <pre><code>       URL url = new URL("http://mangas.centraldemangas.com.br/death_note/death_note001-01.jpg");
         InputStream in = new BufferedInputStream(url.openStream());
         ByteArrayOutputStream out = new ByteArrayOutputStream();
         byte[] buf = new byte[1024];
         int n = 0;
         while (-1!=(n=in.read(buf)))
         {
            out.write(buf, 0, n);
         }
         out.close();
         in.close();
         byte[] response = out.toByteArray();
  
         String nomeArquivo = "teste.jpg";
  
         FileOutputStream fos = new FileOutputStream("C://ImagensAnime//"+nomeArquivo);
         fos.write(response);
         fos.close();
     } catch (IOException e) {
             e.printStackTrace();
     }
  </code></pre>
  
  <p>Is there any way to download it using this URL directly?</p>