Empty Http Call but no error
<p>I'm trying to call a webservice with my application, but I get no error, the URL is the good one and return something (via the browser), but I get no content.</p>

<pre><code>try {
    HttpClient httpclient = new DefaultHttpClient();
    HttpGet httpget = new HttpGet(url);
    HttpResponse response = httpclient.execute(httpget);
    HttpEntity entity = response.getEntity();
    int lenght = (int) entity.getContentLength();
    is = entity.getContent();
} catch (Exception e) {
    Log.e("log_tag", "Error in http connection" + e.toString());
}
</code></pre>

<p>lenght is equal to -1 due to the empty response he receives</p>

<p>Does the response from the url need to be HTML ? Or anything I output can be grab by the HttpClient ?</p>
