ApplesauceOS
Read Markdown ↗Download .md

httpGet

Make a synchronous GET request.

js
httpGet(url, headers?)

Arguments

ArgumentTypeMeaning
urlstringHTTP(S) URL.
headersobjectOptional request headers.

Returns

Response text or null; same behavior as httpRequest.

Example

js
console.log(httpGet("https://example.com"));

All JavaScript APIs · Automation playbook