Skip to content

http.raw deprecated ​

Deprecated

Use web.get instead.

Sends an HTTP request and returns the response as a string.

js
http.raw(url, method, data)

Parameters ​

ParameterTypeDescription
urlstringThe URL to send the request to.
methodstringGET or POST.
datastringThe data to post. Use "" for a GET request.

Returns ​

string

The response, as a JSON string.

Examples ​

js
const html = http.raw("https://example.com", "GET", "");