Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,30 +212,39 @@ fetch --no-pager example.com

### General Request Options

**Method**: `-m, -X, --method`
**Method**: `-m, -X, --method METHOD`

Specify the HTTP method to use.

```sh
fetch -m POST example.com
```

**Headers**: `-H, --header`
**Headers**: `-H, --header NAME:VALUE`

Set custom headers on the request.

```sh
fetch -H x-custom-header:value example.com
```

**Query Parameters**: `-q, --query`
**Query Parameters**: `-q, --query KEY=VALUE`

Append query parameters to the URL.

```sh
fetch -q hello=world example.com
```

**Range Requests**: `-r, --range RANGE`

Set the [Range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range) request header.
Can be specified multiple times for multiple ranges.

```sh
fetch -r 0-1023 example.com
```

**Maximum Allowed Redirects**: `--redirects NUM`

Set the maximum allowed automatic redirects. Use `0` to disable redirects.
Expand Down