diff --git a/Cargo.lock b/Cargo.lock
index 2f62761d339..0ac87e68080 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -555,7 +555,7 @@ checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46"
[[package]]
name = "hurl"
-version = "3.0.0-SNAPSHOT"
+version = "3.0.0"
dependencies = [
"atty",
"base64",
@@ -591,7 +591,7 @@ dependencies = [
[[package]]
name = "hurl_core"
-version = "3.0.0-SNAPSHOT"
+version = "3.0.0"
dependencies = [
"float-cmp",
"regex",
@@ -600,7 +600,7 @@ dependencies = [
[[package]]
name = "hurlfmt"
-version = "3.0.0-SNAPSHOT"
+version = "3.0.0"
dependencies = [
"atty",
"base64",
@@ -863,9 +863,9 @@ checksum = "f658886ed52e196e850cfbbfddab9eaa7f6d90dd0929e264c31e5cec07e09e57"
[[package]]
name = "pkg-config"
-version = "0.3.26"
+version = "0.3.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160"
+checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
[[package]]
name = "ppv-lite86"
diff --git a/README.md b/README.md
index 2ab25e7c6cf..0590b26bc58 100644
--- a/README.md
+++ b/README.md
@@ -897,50 +897,50 @@ HTTP 200
will follow a redirection only for the second entry.
-| Option | Description |
-|------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| --cacert <FILE>
| Specifies the certificate file for peer verification. The file may contain multiple CA certificates and must be in PEM format.
Normally Hurl is built to use a default file for this, so this option is typically used to alter that default file.
|
-| -E, --cert <CERTIFICATE[:PASSWORD]>
| Client certificate file and password.
See also [`--key`](#key).
|
-| --color
| Colorize debug output (the HTTP response output is not colorized).
|
-| --compressed
| Request a compressed response using one of the algorithms br, gzip, deflate and automatically decompress the content.
|
-| --connect-timeout <SECONDS>
| Maximum time in seconds that you allow Hurl's connection to take.
See also [`-m, --max-time`](#max-time).
|
-| --connect-to <HOST1:PORT1:HOST2:PORT2>
| For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead. This option can be used several times in a command line.
See also [`--resolve`](#resolve).
|
-| -b, --cookie <FILE>
| Read cookies from FILE (using the Netscape cookie file format).
Combined with [`-c, --cookie-jar`](#cookie-jar), you can simulate a cookie storage between successive Hurl runs.
|
-| -c, --cookie-jar <FILE>
| Write cookies to FILE after running the session (only for one session).
The file will be written using the Netscape cookie file format.
Combined with [`-b, --cookie`](#cookie), you can simulate a cookie storage between successive Hurl runs.
|
-| --fail-at-end
| Continue executing requests to the end of the Hurl file even when an assert error occurs.
By default, Hurl exits after an assert error in the HTTP response.
Note that this option does not affect the behavior with multiple input Hurl files.
All the input files are executed independently. The result of one file does not affect the execution of the other Hurl files.
|
-| --file-root <DIR>
| Set root file system to import files in Hurl. This is used for both files in multipart form data and request body.
When this is not explicitly defined, the files are relative to the current directory in which Hurl is running.
|
-| -L, --location
| Follow redirect. To limit the amount of redirects to follow use the [`--max-redirs`](#max-redirs) option
|
-| --glob <GLOB>
| Specify input files that match the given glob pattern.
Multiple glob flags may be used. This flag supports common Unix glob patterns like *, ? and [].
However, to avoid your shell accidentally expanding glob patterns before Hurl handles them, you must use single quotes or double quotes around each pattern.
|
-| -i, --include
| Include the HTTP headers in the output (last entry).
|
-| --ignore-asserts
| Ignore all asserts defined in the Hurl file.
|
-| -k, --insecure
| This option explicitly allows Hurl to perform "insecure" SSL connections and transfers.
|
-| --interactive
| Stop between requests.
This is similar to a break point, You can then continue (Press C) or quit (Press Q).
|
-| --json
| Output each hurl file result to JSON. The format is very closed to HAR format.
|
-| --key <KEY>
| Private key file name.
|
-| --max-redirs <NUM>
| Set maximum number of redirection-followings allowed
By default, the limit is set to 50 redirections. Set this option to -1 to make it unlimited.
|
-| -m, --max-time <SECONDS>
| Maximum time in seconds that you allow a request/response to take. This is the standard timeout.
See also [`--connect-timeout`](#connect-timeout).
|
-| --no-color
| Do not colorize output.
|
-| --no-output
| Suppress output. By default, Hurl outputs the body of the last response.
|
-| --noproxy <HOST(S)>
| Comma-separated list of hosts which do not use a proxy.
Override value from Environment variable no_proxy.
|
-| -o, --output <FILE>
| Write output to FILE instead of stdout.
|
-| -x, --proxy <[PROTOCOL://]HOST[:PORT]>
| Use the specified proxy.
|
-| --report-junit <FILE>
| Generate JUnit File.
If the FILE report already exists, it will be updated with the new test results.
|
-| --report-html <DIR>
| Generate HTML report in DIR.
If the HTML report already exists, it will be updated with the new test results.
|
-| --resolve <HOST:PORT:ADDR>
| Provide a custom address for a specific host and port pair. Using this, you can make the Hurl requests(s) use a specified address and prevent the otherwise normally resolved address to be used. Consider it a sort of /etc/hosts alternative provided on the command line.
|
-| --retry
| Retry requests if any error occurs (asserts, captures, runtimes etc...).
|
-| --retry-interval <MILLISECONDS>
| Duration in milliseconds between each retry. Default is 1000 ms.
|
-| --retry-max-count <NUM>
| Maximum number of retries. Set this option to -1 to make it unlimited. Default is 10.
|
-| --ssl-no-revoke
| (Windows) This option tells Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.
|
-| --test
| Activate test mode: with this, the HTTP response is not outputted anymore, progress is reported for each Hurl file tested, and a text summary is displayed when all files have been run.
|
-| --to-entry <ENTRY_NUMBER>
| Execute Hurl file to ENTRY_NUMBER (starting at 1).
Ignore the remaining of the file. It is useful for debugging a session.
|
-| -u, --user <USER:PASSWORD>
| Add basic Authentication header to each request.
|
-| -A, --user-agent <NAME>
| Specify the User-Agent string to send to the HTTP server.
|
-| --variable <NAME=VALUE>
| Define variable (name/value) to be used in Hurl templates.
|
-| --variables-file <FILE>
| Set properties file in which your define your variables.
Each variable is defined as name=value exactly as with [`--variable`](#variable) option.
Note that defining a variable twice produces an error.
|
-| -v, --verbose
| Turn on verbose output on standard error stream.
Useful for debugging.
A line starting with '>' means data sent by Hurl.
A line staring with '<' means data received by Hurl.
A line starting with '*' means additional info provided by Hurl.
If you only want HTTP headers in the output, [`-i, --include`](#include) might be the option you're looking for.
|
-| --very-verbose
| Turn on more verbose output on standard error stream.
In contrast to [`--verbose`](#verbose) option, this option outputs the full HTTP body request and response on standard error. In addition, lines starting with '**' are libcurl debug logs.
|
-| -h, --help
| Usage help. This lists all current command line options with a short description.
|
-| -V, --version
| Prints version information
|
+| Option | Description |
+| --- | --- |
+| --cacert <FILE>
| Specifies the certificate file for peer verification. The file may contain multiple CA certificates and must be in PEM format.
Normally Hurl is built to use a default file for this, so this option is typically used to alter that default file.
|
+| -E, --cert <CERTIFICATE[:PASSWORD]>
| Client certificate file and password.
See also [`--key`](#key).
|
+| --color
| Colorize debug output (the HTTP response output is not colorized).
|
+| --compressed
| Request a compressed response using one of the algorithms br, gzip, deflate and automatically decompress the content.
|
+| --connect-timeout <SECONDS>
| Maximum time in seconds that you allow Hurl's connection to take.
See also [`-m, --max-time`](#max-time).
|
+| --connect-to <HOST1:PORT1:HOST2:PORT2>
| For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead. This option can be used several times in a command line.
See also [`--resolve`](#resolve).
|
+| -b, --cookie <FILE>
| Read cookies from FILE (using the Netscape cookie file format).
Combined with [`-c, --cookie-jar`](#cookie-jar), you can simulate a cookie storage between successive Hurl runs.
|
+| -c, --cookie-jar <FILE>
| Write cookies to FILE after running the session (only for one session).
The file will be written using the Netscape cookie file format.
Combined with [`-b, --cookie`](#cookie), you can simulate a cookie storage between successive Hurl runs.
|
+| --fail-at-end
| Continue executing requests to the end of the Hurl file even when an assert error occurs.
By default, Hurl exits after an assert error in the HTTP response.
Note that this option does not affect the behavior with multiple input Hurl files.
All the input files are executed independently. The result of one file does not affect the execution of the other Hurl files.
|
+| --file-root <DIR>
| Set root file system to import files in Hurl. This is used for both files in multipart form data and request body.
When this is not explicitly defined, the files are relative to the current directory in which Hurl is running.
|
+| -L, --location
| Follow redirect. To limit the amount of redirects to follow use the [`--max-redirs`](#max-redirs) option
|
+| --glob <GLOB>
| Specify input files that match the given glob pattern.
Multiple glob flags may be used. This flag supports common Unix glob patterns like *, ? and [].
However, to avoid your shell accidentally expanding glob patterns before Hurl handles them, you must use single quotes or double quotes around each pattern.
|
+| -i, --include
| Include the HTTP headers in the output (last entry).
|
+| --ignore-asserts
| Ignore all asserts defined in the Hurl file.
|
+| -k, --insecure
| This option explicitly allows Hurl to perform "insecure" SSL connections and transfers.
|
+| --interactive
| Stop between requests.
This is similar to a break point, You can then continue (Press C) or quit (Press Q).
|
+| --json
| Output each hurl file result to JSON. The format is very closed to HAR format.
|
+| --key <KEY>
| Private key file name.
|
+| --max-redirs <NUM>
| Set maximum number of redirection-followings allowed
By default, the limit is set to 50 redirections. Set this option to -1 to make it unlimited.
|
+| -m, --max-time <SECONDS>
| Maximum time in seconds that you allow a request/response to take. This is the standard timeout.
See also [`--connect-timeout`](#connect-timeout).
|
+| --no-color
| Do not colorize output.
|
+| --no-output
| Suppress output. By default, Hurl outputs the body of the last response.
|
+| --noproxy <HOST(S)>
| Comma-separated list of hosts which do not use a proxy.
Override value from Environment variable no_proxy.
|
+| -o, --output <FILE>
| Write output to FILE instead of stdout.
|
+| -x, --proxy <[PROTOCOL://]HOST[:PORT]>
| Use the specified proxy.
|
+| --report-junit <FILE>
| Generate JUnit File.
If the FILE report already exists, it will be updated with the new test results.
|
+| --report-html <DIR>
| Generate HTML report in DIR.
If the HTML report already exists, it will be updated with the new test results.
|
+| --resolve <HOST:PORT:ADDR>
| Provide a custom address for a specific host and port pair. Using this, you can make the Hurl requests(s) use a specified address and prevent the otherwise normally resolved address to be used. Consider it a sort of /etc/hosts alternative provided on the command line.
|
+| --retry
| Retry requests if any error occurs (asserts, captures, runtimes etc...).
|
+| --retry-interval <MILLISECONDS>
| Duration in milliseconds between each retry. Default is 1000 ms.
|
+| --retry-max-count <NUM>
| Maximum number of retries. Set this option to -1 to make it unlimited. Default is 10.
|
+| --ssl-no-revoke
| (Windows) This option tells Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.
|
+| --test
| Activate test mode: with this, the HTTP response is not outputted anymore, progress is reported for each Hurl file tested, and a text summary is displayed when all files have been run.
|
+| --to-entry <ENTRY_NUMBER>
| Execute Hurl file to ENTRY_NUMBER (starting at 1).
Ignore the remaining of the file. It is useful for debugging a session.
|
+| -u, --user <USER:PASSWORD>
| Add basic Authentication header to each request.
|
+| -A, --user-agent <NAME>
| Specify the User-Agent string to send to the HTTP server.
|
+| --variable <NAME=VALUE>
| Define variable (name/value) to be used in Hurl templates.
|
+| --variables-file <FILE>
| Set properties file in which your define your variables.
Each variable is defined as name=value exactly as with [`--variable`](#variable) option.
Note that defining a variable twice produces an error.
|
+| -v, --verbose
| Turn on verbose output on standard error stream.
Useful for debugging.
A line starting with '>' means data sent by Hurl.
A line staring with '<' means data received by Hurl.
A line starting with '*' means additional info provided by Hurl.
If you only want HTTP headers in the output, [`-i, --include`](#include) might be the option you're looking for.
|
+| --very-verbose
| Turn on more verbose output on standard error stream.
In contrast to [`--verbose`](#verbose) option, this option outputs the full HTTP body request and response on standard error. In addition, lines starting with '**' are libcurl debug logs.
|
+| -h, --help
| Usage help. This lists all current command line options with a short description.
|
+| -V, --version
| Prints version information
|
## Environment
@@ -948,24 +948,24 @@ Environment variables can only be specified in lowercase.
Using an environment variable to set the proxy has the same effect as using the [`-x, --proxy`](#proxy) option.
-| Variable | Description |
-|--------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `http_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use for HTTP.
|
-| `https_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use for HTTPS.
|
-| `all_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use if no protocol-specific proxy is set.
|
-| `no_proxy ` | List of host names that shouldn't go through any proxy.
|
-| `HURL_name value` | Define variable (name/value) to be used in Hurl templates. This is similar than [`--variable`](#variable) and [`--variables-file`](#variables-file) options.
|
-| `NO_COLOR` | When set to a non-empty string, do not colorize output (see [`--no-color`](#no-color) option).
|
+| Variable | Description |
+| --- | --- |
+| `http_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use for HTTP.
|
+| `https_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use for HTTPS.
|
+| `all_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use if no protocol-specific proxy is set.
|
+| `no_proxy ` | List of host names that shouldn't go through any proxy.
|
+| `HURL_name value` | Define variable (name/value) to be used in Hurl templates. This is similar than [`--variable`](#variable) and [`--variables-file`](#variables-file) options.
|
+| `NO_COLOR` | When set to a non-empty string, do not colorize output (see [`--no-color`](#no-color) option).
|
## Exit Codes
-| Value | Description |
-|-------|---------------------------------------------------------|
-| `0` | Success.
|
-| `1` | Failed to parse command-line options.
|
-| `2` | Input File Parsing Error.
|
-| `3` | Runtime error (such as failure to connect to host).
|
-| `4` | Assert Error.
|
+| Value | Description |
+| --- | --- |
+| `0` | Success.
|
+| `1` | Failed to parse command-line options.
|
+| `2` | Input File Parsing Error.
|
+| `3` | Runtime error (such as failure to connect to host).
|
+| `4` | Assert Error.
|
## WWW
@@ -982,12 +982,12 @@ curl(1) hurlfmt(1)
### Linux
-Precompiled binary is available at [hurl-2.0.1-x86_64-linux.tar.gz]:
+Precompiled binary is available at [hurl-3.0.0-x86_64-linux.tar.gz]:
```shell
$ INSTALL_DIR=/tmp
-$ curl -silent --location https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-x86_64-linux.tar.gz | tar xvz -C $INSTALL_DIR
-$ export PATH=$INSTALL_DIR/hurl-2.0.1:$PATH
+$ curl -silent --location https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-x86_64-linux.tar.gz | tar xvz -C $INSTALL_DIR
+$ export PATH=$INSTALL_DIR/hurl-3.0.0:$PATH
```
#### Debian / Ubuntu
@@ -995,8 +995,8 @@ $ export PATH=$INSTALL_DIR/hurl-2.0.1:$PATH
For Debian / Ubuntu, Hurl can be installed using a binary .deb file provided in each Hurl release.
```shell
-$ curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl_2.0.1_amd64.deb
-$ sudo apt update && apt install ./hurl_2.0.1_amd64.deb
+$ curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl_3.0.0_amd64.deb
+$ sudo apt update && apt install ./hurl_3.0.0_amd64.deb
```
#### Arch Linux / Manjaro
@@ -1009,7 +1009,7 @@ $ sudo apt update && apt install ./hurl_2.0.1_amd64.deb
### macOS
-Precompiled binary is available at [hurl-2.0.1-x86_64-macos.tar.gz] for x86 CPUs and [hurl-2.0.1-arm64-macos.tar.gz] for ARM CPUS.
+Precompiled binary is available at [hurl-3.0.0-x86_64-macos.tar.gz] for x86 CPUs and [hurl-3.0.0-arm64-macos.tar.gz] for ARM CPUS.
#### Homebrew
@@ -1033,11 +1033,11 @@ $ sudo pkg install hurl
#### Zip File
-Hurl can be installed from a standalone zip file [hurl-2.0.1-win64.zip]. You will need to update your `PATH` variable.
+Hurl can be installed from a standalone zip file [hurl-3.0.0-win64.zip]. You will need to update your `PATH` variable.
#### Installer
-An installer [hurl-2.0.1-win64-installer.exe] is also available.
+An installer [hurl-3.0.0-win64-installer.exe] is also available.
#### Chocolatey
@@ -1163,11 +1163,11 @@ Please follow the [contrib on Windows section].
[`--test` option]: https://hurl.dev/docs/manual.html#test
[Hurl templates]: https://hurl.dev/docs/templates.html
[GitHub]: https://github.com/Orange-OpenSource/hurl
-[hurl-2.0.1-win64.zip]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-win64.zip
-[hurl-2.0.1-win64-installer.exe]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-win64-installer.exe
-[hurl-2.0.1-x86_64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-x86_64-macos.tar.gz
-[hurl-2.0.1-arm64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-arm64-macos.tar.gz
-[hurl-2.0.1-x86_64-linux.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-x86_64-linux.tar.gz
+[hurl-3.0.0-win64.zip]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-win64.zip
+[hurl-3.0.0-win64-installer.exe]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-win64-installer.exe
+[hurl-3.0.0-x86_64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-x86_64-macos.tar.gz
+[hurl-3.0.0-arm64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-arm64-macos.tar.gz
+[hurl-3.0.0-x86_64-linux.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-x86_64-linux.tar.gz
[AUR]: https://wiki.archlinux.org/index.php/Arch_User_Repository
[`hurl-bin` package]: https://aur.archlinux.org/packages/hurl-bin/
[install]: https://www.rust-lang.org/tools/install
diff --git a/docs/installation.md b/docs/installation.md
index 300129bd6da..13ede9bf060 100644
--- a/docs/installation.md
+++ b/docs/installation.md
@@ -4,12 +4,12 @@
### Linux
-Precompiled binary is available at [hurl-2.0.1-x86_64-linux.tar.gz]:
+Precompiled binary is available at [hurl-3.0.0-x86_64-linux.tar.gz]:
```shell
$ INSTALL_DIR=/tmp
-$ curl -silent --location https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-x86_64-linux.tar.gz | tar xvz -C $INSTALL_DIR
-$ export PATH=$INSTALL_DIR/hurl-2.0.1:$PATH
+$ curl -silent --location https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-x86_64-linux.tar.gz | tar xvz -C $INSTALL_DIR
+$ export PATH=$INSTALL_DIR/hurl-3.0.0:$PATH
```
#### Debian / Ubuntu
@@ -17,8 +17,8 @@ $ export PATH=$INSTALL_DIR/hurl-2.0.1:$PATH
For Debian / Ubuntu, Hurl can be installed using a binary .deb file provided in each Hurl release.
```shell
-$ curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl_2.0.1_amd64.deb
-$ sudo apt update && apt install ./hurl_2.0.1_amd64.deb
+$ curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl_3.0.0_amd64.deb
+$ sudo apt update && apt install ./hurl_3.0.0_amd64.deb
```
#### Arch Linux / Manjaro
@@ -31,7 +31,7 @@ $ sudo apt update && apt install ./hurl_2.0.1_amd64.deb
### macOS
-Precompiled binary is available at [hurl-2.0.1-x86_64-macos.tar.gz] for x86 CPUs and [hurl-2.0.1-arm64-macos.tar.gz] for ARM CPUS.
+Precompiled binary is available at [hurl-3.0.0-x86_64-macos.tar.gz] for x86 CPUs and [hurl-3.0.0-arm64-macos.tar.gz] for ARM CPUS.
#### Homebrew
@@ -55,11 +55,11 @@ $ sudo pkg install hurl
#### Zip File
-Hurl can be installed from a standalone zip file [hurl-2.0.1-win64.zip]. You will need to update your `PATH` variable.
+Hurl can be installed from a standalone zip file [hurl-3.0.0-win64.zip]. You will need to update your `PATH` variable.
#### Installer
-An installer [hurl-2.0.1-win64-installer.exe] is also available.
+An installer [hurl-3.0.0-win64-installer.exe] is also available.
#### Chocolatey
@@ -156,11 +156,11 @@ $ ./target/release/hurl --version
Please follow the [contrib on Windows section].
[GitHub]: https://github.com/Orange-OpenSource/hurl
-[hurl-2.0.1-win64.zip]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-win64.zip
-[hurl-2.0.1-win64-installer.exe]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-win64-installer.exe
-[hurl-2.0.1-x86_64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-x86_64-macos.tar.gz
-[hurl-2.0.1-arm64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-arm64-macos.tar.gz
-[hurl-2.0.1-x86_64-linux.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-x86_64-linux.tar.gz
+[hurl-3.0.0-win64.zip]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-win64.zip
+[hurl-3.0.0-win64-installer.exe]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-win64-installer.exe
+[hurl-3.0.0-x86_64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-x86_64-macos.tar.gz
+[hurl-3.0.0-arm64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-arm64-macos.tar.gz
+[hurl-3.0.0-x86_64-linux.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-x86_64-linux.tar.gz
[AUR]: https://wiki.archlinux.org/index.php/Arch_User_Repository
[`hurl-bin` package]: https://aur.archlinux.org/packages/hurl-bin/
[install]: https://www.rust-lang.org/tools/install
diff --git a/docs/manual.md b/docs/manual.md
index 0cd7b049124..38a7914c522 100644
--- a/docs/manual.md
+++ b/docs/manual.md
@@ -145,50 +145,50 @@ HTTP 200
will follow a redirection only for the second entry.
-| Option | Description |
-|------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| --cacert <FILE>
| Specifies the certificate file for peer verification. The file may contain multiple CA certificates and must be in PEM format.
Normally Hurl is built to use a default file for this, so this option is typically used to alter that default file.
|
-| -E, --cert <CERTIFICATE[:PASSWORD]>
| Client certificate file and password.
See also [`--key`](#key).
|
-| --color
| Colorize debug output (the HTTP response output is not colorized).
|
-| --compressed
| Request a compressed response using one of the algorithms br, gzip, deflate and automatically decompress the content.
|
-| --connect-timeout <SECONDS>
| Maximum time in seconds that you allow Hurl's connection to take.
See also [`-m, --max-time`](#max-time).
|
-| --connect-to <HOST1:PORT1:HOST2:PORT2>
| For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead. This option can be used several times in a command line.
See also [`--resolve`](#resolve).
|
-| -b, --cookie <FILE>
| Read cookies from FILE (using the Netscape cookie file format).
Combined with [`-c, --cookie-jar`](#cookie-jar), you can simulate a cookie storage between successive Hurl runs.
|
-| -c, --cookie-jar <FILE>
| Write cookies to FILE after running the session (only for one session).
The file will be written using the Netscape cookie file format.
Combined with [`-b, --cookie`](#cookie), you can simulate a cookie storage between successive Hurl runs.
|
-| --fail-at-end
| Continue executing requests to the end of the Hurl file even when an assert error occurs.
By default, Hurl exits after an assert error in the HTTP response.
Note that this option does not affect the behavior with multiple input Hurl files.
All the input files are executed independently. The result of one file does not affect the execution of the other Hurl files.
|
-| --file-root <DIR>
| Set root file system to import files in Hurl. This is used for both files in multipart form data and request body.
When this is not explicitly defined, the files are relative to the current directory in which Hurl is running.
|
-| -L, --location
| Follow redirect. To limit the amount of redirects to follow use the [`--max-redirs`](#max-redirs) option
|
-| --glob <GLOB>
| Specify input files that match the given glob pattern.
Multiple glob flags may be used. This flag supports common Unix glob patterns like *, ? and [].
However, to avoid your shell accidentally expanding glob patterns before Hurl handles them, you must use single quotes or double quotes around each pattern.
|
-| -i, --include
| Include the HTTP headers in the output (last entry).
|
-| --ignore-asserts
| Ignore all asserts defined in the Hurl file.
|
-| -k, --insecure
| This option explicitly allows Hurl to perform "insecure" SSL connections and transfers.
|
-| --interactive
| Stop between requests.
This is similar to a break point, You can then continue (Press C) or quit (Press Q).
|
-| --json
| Output each hurl file result to JSON. The format is very closed to HAR format.
|
-| --key <KEY>
| Private key file name.
|
-| --max-redirs <NUM>
| Set maximum number of redirection-followings allowed
By default, the limit is set to 50 redirections. Set this option to -1 to make it unlimited.
|
-| -m, --max-time <SECONDS>
| Maximum time in seconds that you allow a request/response to take. This is the standard timeout.
See also [`--connect-timeout`](#connect-timeout).
|
-| --no-color
| Do not colorize output.
|
-| --no-output
| Suppress output. By default, Hurl outputs the body of the last response.
|
-| --noproxy <HOST(S)>
| Comma-separated list of hosts which do not use a proxy.
Override value from Environment variable no_proxy.
|
-| -o, --output <FILE>
| Write output to FILE instead of stdout.
|
-| -x, --proxy <[PROTOCOL://]HOST[:PORT]>
| Use the specified proxy.
|
-| --report-junit <FILE>
| Generate JUnit File.
If the FILE report already exists, it will be updated with the new test results.
|
-| --report-html <DIR>
| Generate HTML report in DIR.
If the HTML report already exists, it will be updated with the new test results.
|
-| --resolve <HOST:PORT:ADDR>
| Provide a custom address for a specific host and port pair. Using this, you can make the Hurl requests(s) use a specified address and prevent the otherwise normally resolved address to be used. Consider it a sort of /etc/hosts alternative provided on the command line.
|
-| --retry
| Retry requests if any error occurs (asserts, captures, runtimes etc...).
|
-| --retry-interval <MILLISECONDS>
| Duration in milliseconds between each retry. Default is 1000 ms.
|
-| --retry-max-count <NUM>
| Maximum number of retries. Set this option to -1 to make it unlimited. Default is 10.
|
-| --ssl-no-revoke
| (Windows) This option tells Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.
|
-| --test
| Activate test mode: with this, the HTTP response is not outputted anymore, progress is reported for each Hurl file tested, and a text summary is displayed when all files have been run.
|
-| --to-entry <ENTRY_NUMBER>
| Execute Hurl file to ENTRY_NUMBER (starting at 1).
Ignore the remaining of the file. It is useful for debugging a session.
|
-| -u, --user <USER:PASSWORD>
| Add basic Authentication header to each request.
|
-| -A, --user-agent <NAME>
| Specify the User-Agent string to send to the HTTP server.
|
-| --variable <NAME=VALUE>
| Define variable (name/value) to be used in Hurl templates.
|
-| --variables-file <FILE>
| Set properties file in which your define your variables.
Each variable is defined as name=value exactly as with [`--variable`](#variable) option.
Note that defining a variable twice produces an error.
|
-| -v, --verbose
| Turn on verbose output on standard error stream.
Useful for debugging.
A line starting with '>' means data sent by Hurl.
A line staring with '<' means data received by Hurl.
A line starting with '*' means additional info provided by Hurl.
If you only want HTTP headers in the output, [`-i, --include`](#include) might be the option you're looking for.
|
-| --very-verbose
| Turn on more verbose output on standard error stream.
In contrast to [`--verbose`](#verbose) option, this option outputs the full HTTP body request and response on standard error. In addition, lines starting with '**' are libcurl debug logs.
|
-| -h, --help
| Usage help. This lists all current command line options with a short description.
|
-| -V, --version
| Prints version information
|
+| Option | Description |
+| --- | --- |
+| --cacert <FILE>
| Specifies the certificate file for peer verification. The file may contain multiple CA certificates and must be in PEM format.
Normally Hurl is built to use a default file for this, so this option is typically used to alter that default file.
|
+| -E, --cert <CERTIFICATE[:PASSWORD]>
| Client certificate file and password.
See also [`--key`](#key).
|
+| --color
| Colorize debug output (the HTTP response output is not colorized).
|
+| --compressed
| Request a compressed response using one of the algorithms br, gzip, deflate and automatically decompress the content.
|
+| --connect-timeout <SECONDS>
| Maximum time in seconds that you allow Hurl's connection to take.
See also [`-m, --max-time`](#max-time).
|
+| --connect-to <HOST1:PORT1:HOST2:PORT2>
| For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead. This option can be used several times in a command line.
See also [`--resolve`](#resolve).
|
+| -b, --cookie <FILE>
| Read cookies from FILE (using the Netscape cookie file format).
Combined with [`-c, --cookie-jar`](#cookie-jar), you can simulate a cookie storage between successive Hurl runs.
|
+| -c, --cookie-jar <FILE>
| Write cookies to FILE after running the session (only for one session).
The file will be written using the Netscape cookie file format.
Combined with [`-b, --cookie`](#cookie), you can simulate a cookie storage between successive Hurl runs.
|
+| --fail-at-end
| Continue executing requests to the end of the Hurl file even when an assert error occurs.
By default, Hurl exits after an assert error in the HTTP response.
Note that this option does not affect the behavior with multiple input Hurl files.
All the input files are executed independently. The result of one file does not affect the execution of the other Hurl files.
|
+| --file-root <DIR>
| Set root file system to import files in Hurl. This is used for both files in multipart form data and request body.
When this is not explicitly defined, the files are relative to the current directory in which Hurl is running.
|
+| -L, --location
| Follow redirect. To limit the amount of redirects to follow use the [`--max-redirs`](#max-redirs) option
|
+| --glob <GLOB>
| Specify input files that match the given glob pattern.
Multiple glob flags may be used. This flag supports common Unix glob patterns like *, ? and [].
However, to avoid your shell accidentally expanding glob patterns before Hurl handles them, you must use single quotes or double quotes around each pattern.
|
+| -i, --include
| Include the HTTP headers in the output (last entry).
|
+| --ignore-asserts
| Ignore all asserts defined in the Hurl file.
|
+| -k, --insecure
| This option explicitly allows Hurl to perform "insecure" SSL connections and transfers.
|
+| --interactive
| Stop between requests.
This is similar to a break point, You can then continue (Press C) or quit (Press Q).
|
+| --json
| Output each hurl file result to JSON. The format is very closed to HAR format.
|
+| --key <KEY>
| Private key file name.
|
+| --max-redirs <NUM>
| Set maximum number of redirection-followings allowed
By default, the limit is set to 50 redirections. Set this option to -1 to make it unlimited.
|
+| -m, --max-time <SECONDS>
| Maximum time in seconds that you allow a request/response to take. This is the standard timeout.
See also [`--connect-timeout`](#connect-timeout).
|
+| --no-color
| Do not colorize output.
|
+| --no-output
| Suppress output. By default, Hurl outputs the body of the last response.
|
+| --noproxy <HOST(S)>
| Comma-separated list of hosts which do not use a proxy.
Override value from Environment variable no_proxy.
|
+| -o, --output <FILE>
| Write output to FILE instead of stdout.
|
+| -x, --proxy <[PROTOCOL://]HOST[:PORT]>
| Use the specified proxy.
|
+| --report-junit <FILE>
| Generate JUnit File.
If the FILE report already exists, it will be updated with the new test results.
|
+| --report-html <DIR>
| Generate HTML report in DIR.
If the HTML report already exists, it will be updated with the new test results.
|
+| --resolve <HOST:PORT:ADDR>
| Provide a custom address for a specific host and port pair. Using this, you can make the Hurl requests(s) use a specified address and prevent the otherwise normally resolved address to be used. Consider it a sort of /etc/hosts alternative provided on the command line.
|
+| --retry
| Retry requests if any error occurs (asserts, captures, runtimes etc...).
|
+| --retry-interval <MILLISECONDS>
| Duration in milliseconds between each retry. Default is 1000 ms.
|
+| --retry-max-count <NUM>
| Maximum number of retries. Set this option to -1 to make it unlimited. Default is 10.
|
+| --ssl-no-revoke
| (Windows) This option tells Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.
|
+| --test
| Activate test mode: with this, the HTTP response is not outputted anymore, progress is reported for each Hurl file tested, and a text summary is displayed when all files have been run.
|
+| --to-entry <ENTRY_NUMBER>
| Execute Hurl file to ENTRY_NUMBER (starting at 1).
Ignore the remaining of the file. It is useful for debugging a session.
|
+| -u, --user <USER:PASSWORD>
| Add basic Authentication header to each request.
|
+| -A, --user-agent <NAME>
| Specify the User-Agent string to send to the HTTP server.
|
+| --variable <NAME=VALUE>
| Define variable (name/value) to be used in Hurl templates.
|
+| --variables-file <FILE>
| Set properties file in which your define your variables.
Each variable is defined as name=value exactly as with [`--variable`](#variable) option.
Note that defining a variable twice produces an error.
|
+| -v, --verbose
| Turn on verbose output on standard error stream.
Useful for debugging.
A line starting with '>' means data sent by Hurl.
A line staring with '<' means data received by Hurl.
A line starting with '*' means additional info provided by Hurl.
If you only want HTTP headers in the output, [`-i, --include`](#include) might be the option you're looking for.
|
+| --very-verbose
| Turn on more verbose output on standard error stream.
In contrast to [`--verbose`](#verbose) option, this option outputs the full HTTP body request and response on standard error. In addition, lines starting with '**' are libcurl debug logs.
|
+| -h, --help
| Usage help. This lists all current command line options with a short description.
|
+| -V, --version
| Prints version information
|
## Environment
@@ -196,24 +196,24 @@ Environment variables can only be specified in lowercase.
Using an environment variable to set the proxy has the same effect as using the [`-x, --proxy`](#proxy) option.
-| Variable | Description |
-|--------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `http_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use for HTTP.
|
-| `https_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use for HTTPS.
|
-| `all_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use if no protocol-specific proxy is set.
|
-| `no_proxy ` | List of host names that shouldn't go through any proxy.
|
-| `HURL_name value` | Define variable (name/value) to be used in Hurl templates. This is similar than [`--variable`](#variable) and [`--variables-file`](#variables-file) options.
|
-| `NO_COLOR` | When set to a non-empty string, do not colorize output (see [`--no-color`](#no-color) option).
|
+| Variable | Description |
+| --- | --- |
+| `http_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use for HTTP.
|
+| `https_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use for HTTPS.
|
+| `all_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use if no protocol-specific proxy is set.
|
+| `no_proxy ` | List of host names that shouldn't go through any proxy.
|
+| `HURL_name value` | Define variable (name/value) to be used in Hurl templates. This is similar than [`--variable`](#variable) and [`--variables-file`](#variables-file) options.
|
+| `NO_COLOR` | When set to a non-empty string, do not colorize output (see [`--no-color`](#no-color) option).
|
## Exit Codes
-| Value | Description |
-|-------|---------------------------------------------------------|
-| `0` | Success.
|
-| `1` | Failed to parse command-line options.
|
-| `2` | Input File Parsing Error.
|
-| `3` | Runtime error (such as failure to connect to host).
|
-| `4` | Assert Error.
|
+| Value | Description |
+| --- | --- |
+| `0` | Success.
|
+| `1` | Failed to parse command-line options.
|
+| `2` | Input File Parsing Error.
|
+| `3` | Runtime error (such as failure to connect to host).
|
+| `4` | Assert Error.
|
## WWW
diff --git a/docs/manual/hurl.1 b/docs/manual/hurl.1
index 2c3bf822174..c298670b222 100644
--- a/docs/manual/hurl.1
+++ b/docs/manual/hurl.1
@@ -1,4 +1,4 @@
-.TH hurl 1 "03 May 2023" "hurl 3.0.0-SNAPSHOT" " Hurl Manual"
+.TH hurl 1 "03 May 2023" "hurl 3.0.0" " Hurl Manual"
.SH NAME
hurl - run and test HTTP requests.
diff --git a/docs/manual/hurlfmt.1 b/docs/manual/hurlfmt.1
index 6556304abb0..56d4c80bec6 100644
--- a/docs/manual/hurlfmt.1
+++ b/docs/manual/hurlfmt.1
@@ -1,4 +1,4 @@
-.TH hurl 1 "03 May 2023" "hurl 3.0.0-SNAPSHOT" " Hurl Manual"
+.TH hurl 1 "03 May 2023" "hurl 3.0.0" " Hurl Manual"
.SH NAME
hurlfmt - format Hurl files
diff --git a/packages/hurl/Cargo.toml b/packages/hurl/Cargo.toml
index 89c5a120329..697df20545b 100644
--- a/packages/hurl/Cargo.toml
+++ b/packages/hurl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hurl"
-version = "3.0.0-SNAPSHOT"
+version = "3.0.0"
authors = ["Fabrice Reix "]
edition = "2021"
license = "Apache-2.0"
@@ -31,7 +31,7 @@ float-cmp = "0.9.0"
glob = "0.3.1"
hex = "0.4.3"
hex-literal = "0.4.1"
-hurl_core = { version = "3.0.0-SNAPSHOT", path = "../hurl_core" }
+hurl_core = { version = "3.0.0", path = "../hurl_core" }
indexmap = "1.9.3"
libflate = "1.3.0"
libxml = "0.3.2"
diff --git a/packages/hurl/README.md b/packages/hurl/README.md
index 395e31783c5..cfc7267a2a4 100644
--- a/packages/hurl/README.md
+++ b/packages/hurl/README.md
@@ -897,50 +897,50 @@ HTTP 200
will follow a redirection only for the second entry.
-| Option | Description |
-|------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| --cacert <FILE>
| Specifies the certificate file for peer verification. The file may contain multiple CA certificates and must be in PEM format.
Normally Hurl is built to use a default file for this, so this option is typically used to alter that default file.
|
-| -E, --cert <CERTIFICATE[:PASSWORD]>
| Client certificate file and password.
See also [`--key`](#key).
|
-| --color
| Colorize debug output (the HTTP response output is not colorized).
|
-| --compressed
| Request a compressed response using one of the algorithms br, gzip, deflate and automatically decompress the content.
|
-| --connect-timeout <SECONDS>
| Maximum time in seconds that you allow Hurl's connection to take.
See also [`-m, --max-time`](#max-time).
|
-| --connect-to <HOST1:PORT1:HOST2:PORT2>
| For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead. This option can be used several times in a command line.
See also [`--resolve`](#resolve).
|
-| -b, --cookie <FILE>
| Read cookies from FILE (using the Netscape cookie file format).
Combined with [`-c, --cookie-jar`](#cookie-jar), you can simulate a cookie storage between successive Hurl runs.
|
-| -c, --cookie-jar <FILE>
| Write cookies to FILE after running the session (only for one session).
The file will be written using the Netscape cookie file format.
Combined with [`-b, --cookie`](#cookie), you can simulate a cookie storage between successive Hurl runs.
|
-| --fail-at-end
| Continue executing requests to the end of the Hurl file even when an assert error occurs.
By default, Hurl exits after an assert error in the HTTP response.
Note that this option does not affect the behavior with multiple input Hurl files.
All the input files are executed independently. The result of one file does not affect the execution of the other Hurl files.
|
-| --file-root <DIR>
| Set root file system to import files in Hurl. This is used for both files in multipart form data and request body.
When this is not explicitly defined, the files are relative to the current directory in which Hurl is running.
|
-| -L, --location
| Follow redirect. To limit the amount of redirects to follow use the [`--max-redirs`](#max-redirs) option
|
-| --glob <GLOB>
| Specify input files that match the given glob pattern.
Multiple glob flags may be used. This flag supports common Unix glob patterns like *, ? and [].
However, to avoid your shell accidentally expanding glob patterns before Hurl handles them, you must use single quotes or double quotes around each pattern.
|
-| -i, --include
| Include the HTTP headers in the output (last entry).
|
-| --ignore-asserts
| Ignore all asserts defined in the Hurl file.
|
-| -k, --insecure
| This option explicitly allows Hurl to perform "insecure" SSL connections and transfers.
|
-| --interactive
| Stop between requests.
This is similar to a break point, You can then continue (Press C) or quit (Press Q).
|
-| --json
| Output each hurl file result to JSON. The format is very closed to HAR format.
|
-| --key <KEY>
| Private key file name.
|
-| --max-redirs <NUM>
| Set maximum number of redirection-followings allowed
By default, the limit is set to 50 redirections. Set this option to -1 to make it unlimited.
|
-| -m, --max-time <SECONDS>
| Maximum time in seconds that you allow a request/response to take. This is the standard timeout.
See also [`--connect-timeout`](#connect-timeout).
|
-| --no-color
| Do not colorize output.
|
-| --no-output
| Suppress output. By default, Hurl outputs the body of the last response.
|
-| --noproxy <HOST(S)>
| Comma-separated list of hosts which do not use a proxy.
Override value from Environment variable no_proxy.
|
-| -o, --output <FILE>
| Write output to FILE instead of stdout.
|
-| -x, --proxy <[PROTOCOL://]HOST[:PORT]>
| Use the specified proxy.
|
-| --report-junit <FILE>
| Generate JUnit File.
If the FILE report already exists, it will be updated with the new test results.
|
-| --report-html <DIR>
| Generate HTML report in DIR.
If the HTML report already exists, it will be updated with the new test results.
|
-| --resolve <HOST:PORT:ADDR>
| Provide a custom address for a specific host and port pair. Using this, you can make the Hurl requests(s) use a specified address and prevent the otherwise normally resolved address to be used. Consider it a sort of /etc/hosts alternative provided on the command line.
|
-| --retry
| Retry requests if any error occurs (asserts, captures, runtimes etc...).
|
-| --retry-interval <MILLISECONDS>
| Duration in milliseconds between each retry. Default is 1000 ms.
|
-| --retry-max-count <NUM>
| Maximum number of retries. Set this option to -1 to make it unlimited. Default is 10.
|
-| --ssl-no-revoke
| (Windows) This option tells Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.
|
-| --test
| Activate test mode: with this, the HTTP response is not outputted anymore, progress is reported for each Hurl file tested, and a text summary is displayed when all files have been run.
|
-| --to-entry <ENTRY_NUMBER>
| Execute Hurl file to ENTRY_NUMBER (starting at 1).
Ignore the remaining of the file. It is useful for debugging a session.
|
-| -u, --user <USER:PASSWORD>
| Add basic Authentication header to each request.
|
-| -A, --user-agent <NAME>
| Specify the User-Agent string to send to the HTTP server.
|
-| --variable <NAME=VALUE>
| Define variable (name/value) to be used in Hurl templates.
|
-| --variables-file <FILE>
| Set properties file in which your define your variables.
Each variable is defined as name=value exactly as with [`--variable`](#variable) option.
Note that defining a variable twice produces an error.
|
-| -v, --verbose
| Turn on verbose output on standard error stream.
Useful for debugging.
A line starting with '>' means data sent by Hurl.
A line staring with '<' means data received by Hurl.
A line starting with '*' means additional info provided by Hurl.
If you only want HTTP headers in the output, [`-i, --include`](#include) might be the option you're looking for.
|
-| --very-verbose
| Turn on more verbose output on standard error stream.
In contrast to [`--verbose`](#verbose) option, this option outputs the full HTTP body request and response on standard error. In addition, lines starting with '**' are libcurl debug logs.
|
-| -h, --help
| Usage help. This lists all current command line options with a short description.
|
-| -V, --version
| Prints version information
|
+| Option | Description |
+| --- | --- |
+| --cacert <FILE>
| Specifies the certificate file for peer verification. The file may contain multiple CA certificates and must be in PEM format.
Normally Hurl is built to use a default file for this, so this option is typically used to alter that default file.
|
+| -E, --cert <CERTIFICATE[:PASSWORD]>
| Client certificate file and password.
See also [`--key`](#key).
|
+| --color
| Colorize debug output (the HTTP response output is not colorized).
|
+| --compressed
| Request a compressed response using one of the algorithms br, gzip, deflate and automatically decompress the content.
|
+| --connect-timeout <SECONDS>
| Maximum time in seconds that you allow Hurl's connection to take.
See also [`-m, --max-time`](#max-time).
|
+| --connect-to <HOST1:PORT1:HOST2:PORT2>
| For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead. This option can be used several times in a command line.
See also [`--resolve`](#resolve).
|
+| -b, --cookie <FILE>
| Read cookies from FILE (using the Netscape cookie file format).
Combined with [`-c, --cookie-jar`](#cookie-jar), you can simulate a cookie storage between successive Hurl runs.
|
+| -c, --cookie-jar <FILE>
| Write cookies to FILE after running the session (only for one session).
The file will be written using the Netscape cookie file format.
Combined with [`-b, --cookie`](#cookie), you can simulate a cookie storage between successive Hurl runs.
|
+| --fail-at-end
| Continue executing requests to the end of the Hurl file even when an assert error occurs.
By default, Hurl exits after an assert error in the HTTP response.
Note that this option does not affect the behavior with multiple input Hurl files.
All the input files are executed independently. The result of one file does not affect the execution of the other Hurl files.
|
+| --file-root <DIR>
| Set root file system to import files in Hurl. This is used for both files in multipart form data and request body.
When this is not explicitly defined, the files are relative to the current directory in which Hurl is running.
|
+| -L, --location
| Follow redirect. To limit the amount of redirects to follow use the [`--max-redirs`](#max-redirs) option
|
+| --glob <GLOB>
| Specify input files that match the given glob pattern.
Multiple glob flags may be used. This flag supports common Unix glob patterns like *, ? and [].
However, to avoid your shell accidentally expanding glob patterns before Hurl handles them, you must use single quotes or double quotes around each pattern.
|
+| -i, --include
| Include the HTTP headers in the output (last entry).
|
+| --ignore-asserts
| Ignore all asserts defined in the Hurl file.
|
+| -k, --insecure
| This option explicitly allows Hurl to perform "insecure" SSL connections and transfers.
|
+| --interactive
| Stop between requests.
This is similar to a break point, You can then continue (Press C) or quit (Press Q).
|
+| --json
| Output each hurl file result to JSON. The format is very closed to HAR format.
|
+| --key <KEY>
| Private key file name.
|
+| --max-redirs <NUM>
| Set maximum number of redirection-followings allowed
By default, the limit is set to 50 redirections. Set this option to -1 to make it unlimited.
|
+| -m, --max-time <SECONDS>
| Maximum time in seconds that you allow a request/response to take. This is the standard timeout.
See also [`--connect-timeout`](#connect-timeout).
|
+| --no-color
| Do not colorize output.
|
+| --no-output
| Suppress output. By default, Hurl outputs the body of the last response.
|
+| --noproxy <HOST(S)>
| Comma-separated list of hosts which do not use a proxy.
Override value from Environment variable no_proxy.
|
+| -o, --output <FILE>
| Write output to FILE instead of stdout.
|
+| -x, --proxy <[PROTOCOL://]HOST[:PORT]>
| Use the specified proxy.
|
+| --report-junit <FILE>
| Generate JUnit File.
If the FILE report already exists, it will be updated with the new test results.
|
+| --report-html <DIR>
| Generate HTML report in DIR.
If the HTML report already exists, it will be updated with the new test results.
|
+| --resolve <HOST:PORT:ADDR>
| Provide a custom address for a specific host and port pair. Using this, you can make the Hurl requests(s) use a specified address and prevent the otherwise normally resolved address to be used. Consider it a sort of /etc/hosts alternative provided on the command line.
|
+| --retry
| Retry requests if any error occurs (asserts, captures, runtimes etc...).
|
+| --retry-interval <MILLISECONDS>
| Duration in milliseconds between each retry. Default is 1000 ms.
|
+| --retry-max-count <NUM>
| Maximum number of retries. Set this option to -1 to make it unlimited. Default is 10.
|
+| --ssl-no-revoke
| (Windows) This option tells Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for exactly that.
|
+| --test
| Activate test mode: with this, the HTTP response is not outputted anymore, progress is reported for each Hurl file tested, and a text summary is displayed when all files have been run.
|
+| --to-entry <ENTRY_NUMBER>
| Execute Hurl file to ENTRY_NUMBER (starting at 1).
Ignore the remaining of the file. It is useful for debugging a session.
|
+| -u, --user <USER:PASSWORD>
| Add basic Authentication header to each request.
|
+| -A, --user-agent <NAME>
| Specify the User-Agent string to send to the HTTP server.
|
+| --variable <NAME=VALUE>
| Define variable (name/value) to be used in Hurl templates.
|
+| --variables-file <FILE>
| Set properties file in which your define your variables.
Each variable is defined as name=value exactly as with [`--variable`](#variable) option.
Note that defining a variable twice produces an error.
|
+| -v, --verbose
| Turn on verbose output on standard error stream.
Useful for debugging.
A line starting with '>' means data sent by Hurl.
A line staring with '<' means data received by Hurl.
A line starting with '*' means additional info provided by Hurl.
If you only want HTTP headers in the output, [`-i, --include`](#include) might be the option you're looking for.
|
+| --very-verbose
| Turn on more verbose output on standard error stream.
In contrast to [`--verbose`](#verbose) option, this option outputs the full HTTP body request and response on standard error. In addition, lines starting with '**' are libcurl debug logs.
|
+| -h, --help
| Usage help. This lists all current command line options with a short description.
|
+| -V, --version
| Prints version information
|
## Environment
@@ -948,24 +948,24 @@ Environment variables can only be specified in lowercase.
Using an environment variable to set the proxy has the same effect as using the [`-x, --proxy`](#proxy) option.
-| Variable | Description |
-|--------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `http_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use for HTTP.
|
-| `https_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use for HTTPS.
|
-| `all_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use if no protocol-specific proxy is set.
|
-| `no_proxy ` | List of host names that shouldn't go through any proxy.
|
-| `HURL_name value` | Define variable (name/value) to be used in Hurl templates. This is similar than [`--variable`](#variable) and [`--variables-file`](#variables-file) options.
|
-| `NO_COLOR` | When set to a non-empty string, do not colorize output (see [`--no-color`](#no-color) option).
|
+| Variable | Description |
+| --- | --- |
+| `http_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use for HTTP.
|
+| `https_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use for HTTPS.
|
+| `all_proxy [PROTOCOL://][:PORT]` | Sets the proxy server to use if no protocol-specific proxy is set.
|
+| `no_proxy ` | List of host names that shouldn't go through any proxy.
|
+| `HURL_name value` | Define variable (name/value) to be used in Hurl templates. This is similar than [`--variable`](#variable) and [`--variables-file`](#variables-file) options.
|
+| `NO_COLOR` | When set to a non-empty string, do not colorize output (see [`--no-color`](#no-color) option).
|
## Exit Codes
-| Value | Description |
-|-------|---------------------------------------------------------|
-| `0` | Success.
|
-| `1` | Failed to parse command-line options.
|
-| `2` | Input File Parsing Error.
|
-| `3` | Runtime error (such as failure to connect to host).
|
-| `4` | Assert Error.
|
+| Value | Description |
+| --- | --- |
+| `0` | Success.
|
+| `1` | Failed to parse command-line options.
|
+| `2` | Input File Parsing Error.
|
+| `3` | Runtime error (such as failure to connect to host).
|
+| `4` | Assert Error.
|
## WWW
@@ -982,12 +982,12 @@ curl(1) hurlfmt(1)
### Linux
-Precompiled binary is available at [hurl-2.0.1-x86_64-linux.tar.gz]:
+Precompiled binary is available at [hurl-3.0.0-x86_64-linux.tar.gz]:
```shell
$ INSTALL_DIR=/tmp
-$ curl -silent --location https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-x86_64-linux.tar.gz | tar xvz -C $INSTALL_DIR
-$ export PATH=$INSTALL_DIR/hurl-2.0.1:$PATH
+$ curl -silent --location https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-x86_64-linux.tar.gz | tar xvz -C $INSTALL_DIR
+$ export PATH=$INSTALL_DIR/hurl-3.0.0:$PATH
```
#### Debian / Ubuntu
@@ -995,8 +995,8 @@ $ export PATH=$INSTALL_DIR/hurl-2.0.1:$PATH
For Debian / Ubuntu, Hurl can be installed using a binary .deb file provided in each Hurl release.
```shell
-$ curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl_2.0.1_amd64.deb
-$ sudo apt update && apt install ./hurl_2.0.1_amd64.deb
+$ curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl_3.0.0_amd64.deb
+$ sudo apt update && apt install ./hurl_3.0.0_amd64.deb
```
#### Arch Linux / Manjaro
@@ -1009,7 +1009,7 @@ $ sudo apt update && apt install ./hurl_2.0.1_amd64.deb
### macOS
-Precompiled binary is available at [hurl-2.0.1-x86_64-macos.tar.gz] for x86 CPUs and [hurl-2.0.1-arm64-macos.tar.gz] for ARM CPUS.
+Precompiled binary is available at [hurl-3.0.0-x86_64-macos.tar.gz] for x86 CPUs and [hurl-3.0.0-arm64-macos.tar.gz] for ARM CPUS.
#### Homebrew
@@ -1033,11 +1033,11 @@ $ sudo pkg install hurl
#### Zip File
-Hurl can be installed from a standalone zip file [hurl-2.0.1-win64.zip]. You will need to update your `PATH` variable.
+Hurl can be installed from a standalone zip file [hurl-3.0.0-win64.zip]. You will need to update your `PATH` variable.
#### Installer
-An installer [hurl-2.0.1-win64-installer.exe] is also available.
+An installer [hurl-3.0.0-win64-installer.exe] is also available.
#### Chocolatey
@@ -1163,11 +1163,11 @@ Please follow the [contrib on Windows section].
[`--test` option]: https://hurl.dev/docs/manual.html#test
[Hurl templates]: https://hurl.dev/docs/templates.html
[GitHub]: https://github.com/Orange-OpenSource/hurl
-[hurl-2.0.1-win64.zip]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-win64.zip
-[hurl-2.0.1-win64-installer.exe]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-win64-installer.exe
-[hurl-2.0.1-x86_64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-x86_64-macos.tar.gz
-[hurl-2.0.1-arm64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-arm64-macos.tar.gz
-[hurl-2.0.1-x86_64-linux.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/2.0.1/hurl-2.0.1-x86_64-linux.tar.gz
+[hurl-3.0.0-win64.zip]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-win64.zip
+[hurl-3.0.0-win64-installer.exe]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-win64-installer.exe
+[hurl-3.0.0-x86_64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-x86_64-macos.tar.gz
+[hurl-3.0.0-arm64-macos.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-arm64-macos.tar.gz
+[hurl-3.0.0-x86_64-linux.tar.gz]: https://github.com/Orange-OpenSource/hurl/releases/download/3.0.0/hurl-3.0.0-x86_64-linux.tar.gz
[AUR]: https://wiki.archlinux.org/index.php/Arch_User_Repository
[`hurl-bin` package]: https://aur.archlinux.org/packages/hurl-bin/
[install]: https://www.rust-lang.org/tools/install
diff --git a/packages/hurl_core/Cargo.toml b/packages/hurl_core/Cargo.toml
index 58cced8b3ea..402c944dfd8 100644
--- a/packages/hurl_core/Cargo.toml
+++ b/packages/hurl_core/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hurl_core"
-version = "3.0.0-SNAPSHOT"
+version = "3.0.0"
authors = ["Fabrice Reix "]
edition = "2021"
license = "Apache-2.0"
diff --git a/packages/hurlfmt/Cargo.toml b/packages/hurlfmt/Cargo.toml
index 119841a7158..e69f7ccdbeb 100644
--- a/packages/hurlfmt/Cargo.toml
+++ b/packages/hurlfmt/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hurlfmt"
-version = "3.0.0-SNAPSHOT"
+version = "3.0.0"
authors = ["Fabrice Reix "]
edition = "2021"
license = "Apache-2.0"
@@ -18,7 +18,7 @@ atty = "0.2.14"
base64 = "0.21.0"
clap = { version = "4.2.7", features = ["cargo", "wrap_help"] }
colored = "2.0.0"
-hurl_core = { version = "3.0.0-SNAPSHOT", path = "../hurl_core" }
+hurl_core = { version = "3.0.0", path = "../hurl_core" }
regex = "1.8.1"
[dev-dependencies]