Update sample docs.

This commit is contained in:
Jean-Christophe Amiel 2024-08-27 14:40:40 +02:00
parent 20c1f4bf74
commit 9a35d73f8a
No known key found for this signature in database
GPG Key ID: 07FF11CFD55356CC
5 changed files with 85 additions and 2 deletions

View File

@ -216,6 +216,7 @@ Table of Contents
* [Capturing and Using a CSRF Token](#capturing-and-using-a-csrf-token)
* [Checking Byte Order Mark (BOM) in Response Body](#checking-byte-order-mark-bom-in-response-body)
* [AWS Signature Version 4 Requests](#aws-signature-version-4-requests)
* [Using curl Options](#using-curl-options)
* [Manual](#manual)
* [Name](#name)
* [Synopsis](#synopsis)
@ -1040,6 +1041,31 @@ Version: 2011-06-15
[Doc](https://hurl.dev/docs/manual.html#aws-sigv4)
### Using curl Options
curl options (for instance [`--resolve`] or [`--connect-to`]) can be used as CLI argument. In this case, they're applicable
to each request of an Hurl file.
```shell
$ hurl --resolve foo.com:8000:127.0.0.1 foo.hurl
```
Use [`[Options]` section][option] to configure a specific request:
```hurl
GET http://bar.com
HTTP 200
GET http://foo.com:8000/resolve
[Options]
resolve: foo.com:8000:127.0.0.1
HTTP 200
`Hello World!`
```
[Doc](https://hurl.dev/docs/request.html#options)
# Manual
@ -1515,6 +1541,8 @@ Please follow the [contrib on Windows section].
[Captures]: https://hurl.dev/docs/capturing-response.html
[option]: https://hurl.dev/docs/request.html#options
[`--json` option]: https://hurl.dev/docs/manual.html#json
[`--resolve`]: https://hurl.dev/docs/manual.html#resolve
[`--connect-to`]: https://hurl.dev/docs/manual.html#connect-to
[GitHub]: https://github.com/Orange-OpenSource/hurl
[Hurl latest GitHub release]: https://github.com/Orange-OpenSource/hurl/releases/latest
[Visual C++ Redistributable Package]: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version

View File

@ -1,4 +1,4 @@
.TH hurl 1 "20 Aug 2024" "hurl 5.0.0-SNAPSHOT" " Hurl Manual"
.TH hurl 1 "27 Aug 2024" "hurl 5.0.0-SNAPSHOT" " Hurl Manual"
.SH NAME
hurl - run and test HTTP requests.

View File

@ -1,4 +1,4 @@
.TH hurl 1 "20 Aug 2024" "hurl 5.0.0-SNAPSHOT" " Hurl Manual"
.TH hurl 1 "27 Aug 2024" "hurl 5.0.0-SNAPSHOT" " Hurl Manual"
.SH NAME
hurlfmt - format Hurl files

View File

@ -780,6 +780,31 @@ Version: 2011-06-15
[Doc](/docs/manual.md#aws-sigv4)
### Using curl Options
curl options (for instance [`--resolve`] or [`--connect-to`]) can be used as CLI argument. In this case, they're applicable
to each request of an Hurl file.
```shell
$ hurl --resolve foo.com:8000:127.0.0.1 foo.hurl
```
Use [`[Options]` section][option] to configure a specific request:
```hurl
GET http://bar.com
HTTP 200
GET http://foo.com:8000/resolve
[Options]
resolve: foo.com:8000:127.0.0.1
HTTP 200
`Hello World!`
```
[Doc](/docs/request.md#options)
[JSON body]: /docs/request.md#json-body
[XML body]: /docs/request.md#xml-body
@ -801,3 +826,5 @@ Version: 2011-06-15
[Captures]: /docs/capturing-response.md
[option]: /docs/request.md#options
[`--json` option]: /docs/manual.md#json
[`--resolve`]: /docs/manual.md#resolve
[`--connect-to`]: /docs/manual.md#connect-to

View File

@ -208,6 +208,7 @@ Table of Contents
* [Capturing and Using a CSRF Token](#capturing-and-using-a-csrf-token)
* [Checking Byte Order Mark (BOM) in Response Body](#checking-byte-order-mark-bom-in-response-body)
* [AWS Signature Version 4 Requests](#aws-signature-version-4-requests)
* [Using curl Options](#using-curl-options)
* [Manual](#manual)
* [Name](#name)
* [Synopsis](#synopsis)
@ -1032,6 +1033,31 @@ Version: 2011-06-15
[Doc](https://hurl.dev/docs/manual.html#aws-sigv4)
### Using curl Options
curl options (for instance [`--resolve`] or [`--connect-to`]) can be used as CLI argument. In this case, they're applicable
to each request of an Hurl file.
```shell
$ hurl --resolve foo.com:8000:127.0.0.1 foo.hurl
```
Use [`[Options]` section][option] to configure a specific request:
```hurl
GET http://bar.com
HTTP 200
GET http://foo.com:8000/resolve
[Options]
resolve: foo.com:8000:127.0.0.1
HTTP 200
`Hello World!`
```
[Doc](https://hurl.dev/docs/request.html#options)
# Manual
@ -1507,6 +1533,8 @@ Please follow the [contrib on Windows section].
[Captures]: https://hurl.dev/docs/capturing-response.html
[option]: https://hurl.dev/docs/request.html#options
[`--json` option]: https://hurl.dev/docs/manual.html#json
[`--resolve`]: https://hurl.dev/docs/manual.html#resolve
[`--connect-to`]: https://hurl.dev/docs/manual.html#connect-to
[GitHub]: https://github.com/Orange-OpenSource/hurl
[Hurl latest GitHub release]: https://github.com/Orange-OpenSource/hurl/releases/latest
[Visual C++ Redistributable Package]: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version