Skip to content

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 ​

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 doc = http.base64("https://example.com", "GET", "");