This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static String makeGetRequest() throws IOException { | |
StringBuilder builder = new StringBuilder(); | |
HttpClient client = new DefaultHttpClient(); | |
HttpGet httpGet = new HttpGet(URL); | |
HttpResponse response = client.execute(httpGet); | |
StatusLine statusLine = response.getStatusLine(); | |
int statusCode = statusLine.getStatusCode(); | |
if (statusCode == 200) { |