---
title: requests package
description: The requests package provides functions for transferring data using the HTTP protocol.
url: https://docs.influxdata.com/flux/v0/stdlib/experimental/http/requests/
estimated_tokens: 482
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/experimental/http/requests/
date: '2023-11-27T17:32:55+01:00'
lastmod: '2023-11-27T17:32:55+01:00'
---

* Flux 0.152.0 – 0.173.0

InfluxDB support

> [!Important]
> The `requests` package is experimental and [subject to change at any time](/flux/v0/stdlib/experimental/#experimental-packages-are-subject-to-change).

The `requests` package provides functions for transferring data using the HTTP protocol.
Import the `experimental/http/requests` package:

```js
import "experimental/http/requests"
```

#### Deprecated

This package is deprecated in favor of [`requests`](/flux/v0/stdlib/http/requests/).
Do not mix usage of this experimental package with the `requests` package as the `defaultConfig` is not shared between the two packages.
This experimental package is completely superseded by the `requests` package so there should be no need to mix them.

## Options

```js
option requests.defaultConfig = {
    // Timeout on the request. If the timeout is zero no timeout is applied
    timeout: 0s,
    // insecureSkipVerify If true, TLS verification will not be performed. This is insecure.
    insecureSkipVerify: false,
}
```

### defaultConfig

`defaultConfig` is the global default for all http requests using the requests package.
Changing this config will affect all other packages using the requests package.
To change the config for a single request, pass a new config directly into the corresponding function.

**Deprecated**: Experimental `requests.defaultConfig` is deprecated in favor of[`requests.defaultConfig`](/flux/v0/stdlib/http/requests/#options).
Do not mix usage of this experimental package with the `requests` package as the `defaultConfig` is not shared between the two packages.

## Functions

* [requests.do()](/flux/v0/stdlib/experimental/http/requests/do/)
* [requests.get()](/flux/v0/stdlib/experimental/http/requests/get/)
* [requests.peek()](/flux/v0/stdlib/experimental/http/requests/peek/)
* [requests.post()](/flux/v0/stdlib/experimental/http/requests/post/)

[http](/flux/v0/tags/http/)
