Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * This Java source file was generated by the Gradle 'init' task.
- */
- package testcurl;
- import org.apache.http.HttpResponse;
- import org.apache.http.client.HttpClient;
- import org.apache.http.client.methods.HttpGet;
- import org.apache.http.impl.client.DefaultHttpClient;
- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- public class App {
- public static void main(String[] args) throws IOException {
- HttpClient client = new DefaultHttpClient();
- HttpGet request = new HttpGet("https://www.congstar.de/api/data/location-storage/contexts/aufladefinder");
- HttpResponse response = client.execute(request);
- BufferedReader rd = new BufferedReader
- (new InputStreamReader(
- response.getEntity().getContent()));
- String line = "";
- while ((line = rd.readLine()) != null) {
- System.out.println(line);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement