---
url: /process-functions/http-download.md
description: Replaced by web.download
---

# http.download&#x20;

:::info
Replaced by [web.download](/process-functions/web-download.html)
:::

This function downloads a resource and stores it as the provided file name in the MODLR Filesystem. This can be accessed via processes using the MODLR Filesystem or through the MODLR FTP Server.

```js
http.download(url, method, postData, saveAsFilename)
```

#### Parameters

* `url` - the URL of the resource to download.
* `method` - the method of the request `GET` or `POST`.
* `postData` - the post data to send to the server.
* `saveAsFilename` - the name and subfolder to store this file as.

#### Example

```js
let success = http.download("https://go.modlr.co/images/logo.png", "GET", "", "logo.png");
```
