Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Sending a HTTP Get Request

$
0
0

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?


Viewing all articles
Browse latest Browse all 2896

Trending Articles