final HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET");
for (final Map.Entry<String, String> header : headers.entrySet()) {
connection.setRequestProperty(header.getKey(), header.getValue());
}
<BUG>final BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
StringBuilder body = new StringBuilder();
String line;
while ( (line = reader.readLine()) != null ) {
body.append(line);
}
reader.close();</BUG>
final int statusCode = connection.getResponseCode();

final HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET");
for (final Map.Entry<String, String> header : headers.entrySet()) {
connection.setRequestProperty(header.getKey(), header.getValue());
