From 849b154e76ed8f5de68c362a1918df7185560e70 Mon Sep 17 00:00:00 2001 From: hurl-bot Date: Wed, 1 Feb 2023 16:09:25 +0000 Subject: [PATCH] Update hurl version to 2.0.1-SNAPSHOT --- Cargo.lock | 6 +- README.md | 116 ++++++++++++++++----------------- docs/manual.md | 1 - docs/manual/hurl.1 | 3 +- docs/manual/hurlfmt.1 | 2 +- packages/hurl/Cargo.toml | 4 +- packages/hurl/README.md | 117 +++++++++++++++++----------------- packages/hurl_core/Cargo.toml | 2 +- packages/hurlfmt/Cargo.toml | 4 +- 9 files changed, 126 insertions(+), 129 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fd7db70f215..534d8a3705f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -497,7 +497,7 @@ checksum = "7ebdb29d2ea9ed0083cd8cece49bbd968021bd99b0849edb4a9a7ee0fdf6a4e0" [[package]] name = "hurl" -version = "2.1.0-SNAPSHOT" +version = "2.0.1-SNAPSHOT" dependencies = [ "atty", "base64", @@ -531,7 +531,7 @@ dependencies = [ [[package]] name = "hurl_core" -version = "2.1.0-SNAPSHOT" +version = "2.0.1-SNAPSHOT" dependencies = [ "float-cmp", "regex", @@ -540,7 +540,7 @@ dependencies = [ [[package]] name = "hurlfmt" -version = "2.1.0-SNAPSHOT" +version = "2.0.1-SNAPSHOT" dependencies = [ "atty", "base64", diff --git a/README.md b/README.md index d29ea79dc64..b75a4eab185 100644 --- a/README.md +++ b/README.md @@ -848,50 +848,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 @@ -899,23 +899,23 @@ 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 | -|-------|---------------------------------------------------------| -| `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 | +| --- | --- | +| `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.md b/docs/manual.md index 76d0fcb6c6e..947cf055306 100644 --- a/docs/manual.md +++ b/docs/manual.md @@ -80,7 +80,6 @@ HTTP 200 [Captures] csrf_token: xpath "normalize-space(//meta[@name='_csrf_token']/@content)" - # Do the login ! POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} diff --git a/docs/manual/hurl.1 b/docs/manual/hurl.1 index 81a55a33ab5..1927b8fb18d 100644 --- a/docs/manual/hurl.1 +++ b/docs/manual/hurl.1 @@ -1,4 +1,4 @@ -.TH hurl 1 "27 Jan 2023" "hurl 2.1.0-SNAPSHOT" " Hurl Manual" +.TH hurl 1 "01 Feb 2023" "hurl 2.0.1-SNAPSHOT" " Hurl Manual" .SH NAME hurl - run and test HTTP requests. @@ -70,7 +70,6 @@ A typical example occurs with CSRF tokens. [Captures] csrf_token: xpath "normalize-space(//meta[@name='_csrf_token']/@content)" - # Do the login ! POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} diff --git a/docs/manual/hurlfmt.1 b/docs/manual/hurlfmt.1 index 20e86801bc8..87301f4f136 100644 --- a/docs/manual/hurlfmt.1 +++ b/docs/manual/hurlfmt.1 @@ -1,4 +1,4 @@ -.TH hurl 1 "27 Jan 2023" "hurl 2.1.0-SNAPSHOT" " Hurl Manual" +.TH hurl 1 "01 Feb 2023" "hurl 2.0.1-SNAPSHOT" " Hurl Manual" .SH NAME hurlfmt - format Hurl files diff --git a/packages/hurl/Cargo.toml b/packages/hurl/Cargo.toml index 378a4c537bb..ea9b9fa979f 100644 --- a/packages/hurl/Cargo.toml +++ b/packages/hurl/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hurl" -version = "2.1.0-SNAPSHOT" +version = "2.0.1-SNAPSHOT" authors = ["Fabrice Reix "] edition = "2021" license = "Apache-2.0" @@ -29,7 +29,7 @@ float-cmp = "0.9.0" glob = "0.3.1" hex = "0.4.3" hex-literal = "0.3.4" -hurl_core = { version = "2.1.0-SNAPSHOT", path = "../hurl_core" } +hurl_core = { version = "2.0.1-SNAPSHOT", path = "../hurl_core" } indexmap = "1.9.2" libflate = "1.2.0" libxml = "0.3.1" diff --git a/packages/hurl/README.md b/packages/hurl/README.md index 812829c036d..8862d24520c 100644 --- a/packages/hurl/README.md +++ b/packages/hurl/README.md @@ -783,7 +783,6 @@ HTTP 200 [Captures] csrf_token: xpath "normalize-space(//meta[@name='_csrf_token']/@content)" - # Do the login ! POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: {{csrf_token}} @@ -849,50 +848,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 @@ -900,23 +899,23 @@ 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 | -|-------|---------------------------------------------------------| -| `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 | +| --- | --- | +| `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/packages/hurl_core/Cargo.toml b/packages/hurl_core/Cargo.toml index faac4274188..119a4fcef8a 100644 --- a/packages/hurl_core/Cargo.toml +++ b/packages/hurl_core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hurl_core" -version = "2.1.0-SNAPSHOT" +version = "2.0.1-SNAPSHOT" authors = ["Fabrice Reix "] edition = "2021" license = "Apache-2.0" diff --git a/packages/hurlfmt/Cargo.toml b/packages/hurlfmt/Cargo.toml index 503919f13dc..7cdc42b9277 100644 --- a/packages/hurlfmt/Cargo.toml +++ b/packages/hurlfmt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hurlfmt" -version = "2.1.0-SNAPSHOT" +version = "2.0.1-SNAPSHOT" authors = ["Fabrice Reix "] edition = "2021" license = "Apache-2.0" @@ -18,7 +18,7 @@ atty = "0.2.14" base64 = "0.21.0" clap = { version = "4.1.4", features = ["cargo", "wrap_help"] } colored = "2.0.0" -hurl_core = { version = "2.1.0-SNAPSHOT", path = "../hurl_core" } +hurl_core = { version = "2.0.1-SNAPSHOT", path = "../hurl_core" } regex = "1.7.1" [dev-dependencies]