Get content of a file, throws "host name may be null"
<p>I'm having a trouble getting the content of a file located at a address similar to 
"http:///127.0.0.1:1935/app/unique_id/file.txt". The exception states that the host name
may be null. I think the problem is due to the port.</p>

<p>How do I get the content of the file?</p>

<pre><code>        final HttpGet httpGet = new HttpGet(url);
        HttpParams httpParameters = new BasicHttpParams();      
        HttpConnectionParams.setConnectionTimeout(httpParameters, timeoutConnection);
        HttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);

        final DefaultHttpClient httpClient = new DefaultHttpClient(httpParameters);

        InputStream inputStream = timedCall(new Callable&lt;InputStream&gt;() {
            public InputStream call() throws Exception {
                HttpResponse response = httpClient.execute(httpGet);
                return response.getEntity().getContent();
            };
        }, 10, TimeUnit.SECONDS);

        return inputStream;
</code></pre>
