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 https://scratch.mit.edu/varserver/105015849

The Processing.org sketch looks like this:

import http.requests.*;

GetRequest get = new GetRequest("https://scratch.mit.edu/varserver/105015849“);
get.send();
get.addHeader(”Accept“, ”application/json“);
println(”Response Content: " +get.getContent());

However, no response is provided. Any suggestions?

Answers

Sign In or Register to comment.