Sending a HTTP Get Request

edited April 2016 in Library Questions

Hi There. I have a few students who are attempting to send a get request from processing to retrieve their SCRATCH cloud data. I have instructed them to use the following: GET

The sketch looks like this:

import http.requests.*;

GetRequest get = new GetRequest("“);
get.addHeader(”Accept“, ”application/json“);
println(”Response Content: " +get.getContent());

However, no response is provided. Any suggestions?


Sign In or Register to comment.