title: Problem reading file from URL - permission denied
body: <p>I was trying to connect to some host like this</p>
  
  <pre><code>                url = new URL(urlString);
                  BufferedReader in = new BufferedReader(
                                  new InputStreamReader(
                                  url.openStream()));
  </code></pre>
  
  <p>but I always get MalformedException - permission denied, I need to provide username and password ( which I know ) but I don't know how, there is no constructor in URL with those parametere neither setusername/password methods. Where to put username and password ?</p>