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
| Parameter | Type | Description |
|---|---|---|
url | string | The URL to send the request to. |
method | string | GET or POST. |
data | string | The data to post. Use "" for a GET request. |
Returns
stringThe response, as a JSON string.
Examples
js
const html = http.raw("https://example.com", "GET", "");