I'm trying to Get Request with code below but the stringbuilder is always null. The url is correct...
EDIT
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; }