Skip to content

Commit

Permalink
Update proxy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric05 authored Nov 2, 2023
1 parent e86a2cd commit fac393c
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions docs/extra_args.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,40 @@ slug: flags

### Insecure

While development in local, dev environments most of us uses self signed certificates. By default dothttp will verify certificates, incase of one wants to use self signed certificates
In local development environments, self-signed certificates are often used. By default, dothttp verifies certificates. However, you can bypass this verification by using `@insecure` after `@name`.

Use `@insecure` after `@name`

#### Example
```http
@name('with-key-and-cert')
@insecure
https://client.badssl.com/
GET https://client.badssl.com/
certificate(cert="{{cert}}",key="{{key}}")
```

### Clear

When one wants to clear all session variables use

Use `@clear` after `@name`
To clear all session variables, simply add @clear after @name.

#### Example
```http
@name('with-key-and-cert')
@clear
https://client.badssl.com/
GET https://client.badssl.com/
certificate(cert="{{cert}}",key="{{key}}")
```

### Proxy

Dothttp allows us to make HTTP/HTTPS requests through a proxy using ('http.proxy', 'proxy-url') or ('https.proxy', 'proxy-url').


#### Example

```http
@name('make http call via proxy')
('http.proxy', 'http://127.0.0.1:2828')
GET "https://<url>
```

0 comments on commit fac393c

Please sign in to comment.