title: URLConnection returning empty inputStream
body: <p>I am trying to fetch input stream pdf from <code>URL Connection</code> but I am getting an empty input stream. Can anyone please tell me what is I am doing wrong? Following is the code:</p>
  
  <pre><code>&lt;!-- language: java --&gt;
  
  URL fileUrl = new URL("https://www.dropbox.com/s/ao3up7xudju4qm0/Amalgabond%20Adhesive%20Agent.pdf");
  HttpURLConnection connection = (HttpURLConnection)fileUrl.openConnection();
  connection.connect(); 
  InputStream is = connection.getInputStream();
  Log.i("TAG", "is.available(): " + is.available());
  </code></pre>
  
  <p><code>is.available()</code> is returning <code>0</code> empty stream.</p>