---
url: /process-functions/http-raw.md
description: Sends an HTTP request and returns the response as a string.
---

# http.raw&#x20;

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

The response, as a JSON string.

## Examples

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