---
url: /process-functions/http-base64.md
description: Sends an HTTP request and returns the response base64-encoded.
---

# http.base64&#x20;

::: warning Deprecated
Use [`web.get`](/process-functions/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

The response, as a JSON string.

## Examples

```js
const doc = http.base64("https://example.com", "GET", "");
```
