http.base64 deprecated
Deprecated
Use web.get with base64Body set to true instead.
Sends an HTTP request and returns the response base64-encoded.
js
http.base64(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 doc = http.base64("https://example.com", "GET", "");