Hello! I got a problem that I can’t understand. I need to load this url into a Processing sketch: https://www.colourlovers.com/api/palettes/top?format=json
I used loadJSONArray without any problem in the past but now I got this error:
java.io.IOException: Server returned HTTP response code: 403 for URL: …
If I open the same url using the HTTP Library it works without any problem:
JSONArray second;
GetRequest get = new GetRequest("https://www.colourlovers.com/api/palettes/top?format=json");
get.send();
second = parseJSONArray(get.getContent());
Any suggestion on how to solve it using loadJSONArray?
I’m sure that the problem can be solved by adding a user agent to the request. Is it possible to do so with the function loadjson? I looked into the javadoc but couldn’t find any hint