---
url: /process-functions/http-document.md
description: >-
  This function downloads a webpage and returns a document object model using
  the jsoup library.
---

# http.document

This function downloads a webpage and returns a document object model using the jsoup library.

For more information on how to traverse a document visit <https://jsoup.org/>.

```js
http.document(url, method, postData)
```

#### 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.

#### Example

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