Android - Http Get Request
<p>I'm trying to Get Request with code below but the stringbuilder is always null. The url is correct...</p>

<p><a href="http://pastebin.com/mASvGmkq" rel="nofollow">http://pastebin.com/mASvGmkq</a></p>

<p>EDIT </p>

<pre><code>public static StringBuilder sendHttpGet(String url) {

    HttpClient http = new DefaultHttpClient();
    StringBuilder buffer = null;

    try {
        HttpGet get = new HttpGet(url);
        HttpResponse resp = http.execute(get);
        buffer = inputStreamToString(resp.getEntity().getContent());
    }
    catch(Exception e) {
        debug("ERRO EM GET HTTP URL:\n" + url + "\n" + e);
        return null;
    }

    debug("GET HTTP URL OK:\n" + buffer);
    return buffer;
}
</code></pre>
