Skip to content

Commit 0f8207c

Browse files
committed
Generate manual and manual dependencies.
1 parent 280b345 commit 0f8207c

File tree

11 files changed

+137
-93
lines changed

11 files changed

+137
-93
lines changed

README.md

Lines changed: 33 additions & 15 deletions
Large diffs are not rendered by default.

docs/manual.md

Lines changed: 14 additions & 13 deletions
Large diffs are not rendered by default.

docs/manual/hurl.1

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH hurl 1 "19 Oct 2023" "hurl 4.2.0-SNAPSHOT" " Hurl Manual"
1+
.TH hurl 1 "08 Jan 2024" "hurl 4.2.0-SNAPSHOT" " Hurl Manual"
22
.SH NAME
33

44
hurl - run and test HTTP requests.
@@ -145,7 +145,7 @@ See also \fI--key\fP.
145145

146146
.IP "--color "
147147

148-
Colorize debug output (the HTTP response output is not colorized).
148+
Colorize debug output (the HTTP response output is not colorized).
149149

150150
.IP "--compressed "
151151

@@ -189,26 +189,20 @@ Combined with \fI-b, --cookie\fP, you can simulate a cookie storage between succ
189189

190190
Sets delay before each request.
191191

192-
193192
.IP "--error-format <FORMAT> "
194193

195194
Control the format of error message (short by default or long)
196195

197-
198196
.IP "--file-root <DIR> "
199197

200-
Set root file system to import files in Hurl. This is used for both files in multipart form data and request body.
201-
When this is not explicitly defined, the files are relative to the current directory in which Hurl is running.
202-
203-
.IP "-L, --location "
204-
205-
Follow redirect. To limit the amount of redirects to follow use the \fI--max-redirs\fP option
198+
Set root directory to import files in Hurl. This is used for files in multipart form data, request body and response output.
199+
When it is not explicitly defined, files are relative to the current directory in which Hurl is running.
206200

207201
.IP "--glob <GLOB> "
208202

209203
Specify input files that match the given glob pattern.
210204

211-
Multiple glob flags may be used. This flag supports common Unix glob patterns like *, ? and [].
205+
Multiple glob flags may be used. This flag supports common Unix glob patterns like *, ? and [].
212206
However, to avoid your shell accidentally expanding glob patterns before Hurl handles them, you must use single quotes or double quotes around each pattern.
213207

214208
.IP "-0, --http1.0 "
@@ -229,21 +223,22 @@ For HTTP, this means Hurl attempts to upgrade the request to HTTP/2 using the Up
229223

230224
Tells Hurl to try HTTP/3 to the host in the URL, but fallback to earlier HTTP versions if the HTTP/3 connection establishment fails. HTTP/3 is only available for HTTPS and not for HTTP URLs.
231225

232-
.IP "-i, --include "
233-
234-
Include the HTTP headers in the output (last entry).
235-
236226
.IP "--ignore-asserts "
237227

238228
Ignore all asserts defined in the Hurl file.
239229

230+
.IP "-i, --include "
231+
232+
Include the HTTP headers in the output
233+
240234
.IP "-k, --insecure "
241235

242236
This option explicitly allows Hurl to perform "insecure" SSL connections and transfers.
243237

244238
.IP "--interactive "
245239

246240
Stop between requests.
241+
247242
This is similar to a break point, You can then continue (Press C) or quit (Press Q).
248243

249244
.IP "-4, --ipv4 "
@@ -256,15 +251,25 @@ This option tells Hurl to use IPv6 addresses only when resolving host names, and
256251

257252
.IP "--json "
258253

259-
Output each hurl file result to JSON. The format is very closed to HAR format.
254+
Output each hurl file result to JSON. The format is very closed to HAR format.
260255

261256
.IP "--key <KEY> "
262257

263258
Private key file name.
264259

260+
.IP "-L, --location "
261+
262+
Follow redirect. To limit the amount of redirects to follow use the \fI--max-redirs\fP option
263+
264+
.IP "--location-trusted "
265+
266+
Like \fI-L, --location\fP, but allows sending the name + password to all hosts that the site may redirect to.
267+
This may or may not introduce a security breach if the site redirects you to a site to which you send your authentication info (which is plaintext in the case of HTTP Basic authentication).
268+
265269
.IP "--max-redirs <NUM> "
266270

267271
Set maximum number of redirection-followings allowed
272+
268273
By default, the limit is set to 50 redirections. Set this option to -1 to make it unlimited.
269274

270275
.IP "-m, --max-time <SECONDS> "
@@ -284,6 +289,7 @@ Suppress output. By default, Hurl outputs the body of the last response.
284289
.IP "--noproxy <HOST(S)> "
285290

286291
Comma-separated list of hosts which do not use a proxy.
292+
287293
Override value from Environment variable no_proxy.
288294

289295
.IP "-o, --output <FILE> "
@@ -298,29 +304,29 @@ Tell Hurl to not handle sequences of /../ or /./ in the given URL path. Normally
298304

299305
Use the specified proxy.
300306

301-
.IP "--report-junit <FILE> "
302-
303-
Generate JUnit File.
304-
305-
If the FILE report already exists, it will be updated with the new test results.
306-
307307
.IP "--report-html <DIR> "
308308

309309
Generate HTML report in DIR.
310310

311311
If the HTML report already exists, it will be updated with the new test results.
312312

313+
.IP "--report-junit <FILE> "
314+
315+
Generate JUnit File.
316+
317+
If the FILE report already exists, it will be updated with the new test results.
318+
313319
.IP "--report-tap <FILE> "
314320

315321
Generate TAP report.
316322

317323
If the FILE report already exists, it will be updated with the new test results.
318324

319-
.IP "--resolve <HOST:PORT:ADDR> <HOST:PORT:ADDR>"
325+
.IP "--resolve <HOST:PORT:ADDR> "
320326

321327
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.
322328

323-
.IP "--retry <NUM> "
329+
.IP "--retry <NUM> "
324330

325331
Maximum number of retries, 0 for no retries, -1 for unlimited retries. Retry happens if any error occurs (asserts, captures, runtimes etc...).
326332

@@ -332,10 +338,6 @@ Duration in milliseconds between each retry. Default is 1000 ms.
332338

333339
(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.
334340

335-
.IP "--unix-socket <PATH> "
336-
337-
(HTTP) Connect through this Unix domain socket, instead of using the network.
338-
339341
.IP "--test "
340342

341343
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.
@@ -345,6 +347,10 @@ Activate test mode: with this, the HTTP response is not outputted anymore, progr
345347
Execute Hurl file to ENTRY_NUMBER (starting at 1).
346348
Ignore the remaining of the file. It is useful for debugging a session.
347349

350+
.IP "--unix-socket <PATH> "
351+
352+
(HTTP) Connect through this Unix domain socket, instead of using the network.
353+
348354
.IP "-u, --user <USER:PASSWORD> "
349355

350356
Add basic Authentication header to each request.
@@ -365,7 +371,7 @@ Each variable is defined as name=value exactly as with \fI--variable\fP option.
365371

366372
Note that defining a variable twice produces an error.
367373

368-
.IP "-v, --verbose "
374+
.IP "--verbose "
369375

370376
Turn on verbose output on standard error stream.
371377
Useful for debugging.
@@ -382,7 +388,6 @@ Turn on more verbose output on standard error stream.
382388

383389
In contrast to \fI--verbose\fP option, this option outputs the full HTTP body request and response on standard error. In addition, lines starting with '**' are libcurl debug logs.
384390

385-
386391
.IP "-h, --help "
387392

388393
Usage help. This lists all current command line options with a short description.

docs/manual/hurl.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ Control the format of error message (short by default or long)
214214

215215
### --file-root <DIR> {#file-root}
216216

217-
Set root file system to import files in Hurl. This is used for both files in multipart form data and request body.
218-
When this is not explicitly defined, the files are relative to the current directory in which Hurl is running.
217+
Set root directory to import files in Hurl. This is used for files in multipart form data, request body and response output.
218+
When it is not explicitly defined, files are relative to the current directory in which Hurl is running.
219219

220220
### --glob <GLOB> {#glob}
221221

@@ -280,6 +280,11 @@ Private key file name.
280280

281281
Follow redirect. To limit the amount of redirects to follow use the [`--max-redirs`](#max-redirs) option
282282

283+
### --location-trusted {#location-trusted}
284+
285+
Like [`-L, --location`](#location), but allows sending the name + password to all hosts that the site may redirect to.
286+
This may or may not introduce a security breach if the site redirects you to a site to which you send your authentication info (which is plaintext in the case of HTTP Basic authentication).
287+
283288
### --max-redirs <NUM> {#max-redirs}
284289

285290
Set maximum number of redirection-followings allowed

docs/manual/hurlfmt.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH hurl 1 "19 Oct 2023" "hurl 4.2.0-SNAPSHOT" " Hurl Manual"
1+
.TH hurl 1 "08 Jan 2024" "hurl 4.2.0-SNAPSHOT" " Hurl Manual"
22
.SH NAME
33

44
hurlfmt - format Hurl files
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: file_root
22
long: file-root
33
value: DIR
4-
help: Set root filesystem to import files [default: current directory]
4+
help: Set root directory to import files [default: current directory]
55
---
6-
Set root file system to import files in Hurl. This is used for both files in multipart form data and request body.
7-
When this is not explicitly defined, the files are relative to the current directory in which Hurl is running.
6+
Set root directory to import files in Hurl. This is used for files in multipart form data, request body and response output.
7+
When it is not explicitly defined, files are relative to the current directory in which Hurl is running.

docs/spec/options/hurl/follow_location_trusted.option

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ name: follow_location_trusted
22
long: location-trusted
33
help: Follow redirects but allows sending the name + password to all hosts that the site may redirect to.
44
---
5-
Like -L, --location, but allows sending the name + password to all hosts that the site may redirect to.
5+
Like [`-L, --location`](#location), but allows sending the name + password to all hosts that the site may redirect to.
66
This may or may not introduce a security breach if the site redirects you to a site to which you send your authentication info (which is plaintext in the case of HTTP Basic authentication).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: unix_socket
22
long: unix-socket
3-
value: path
3+
value: PATH
44
help: (HTTP) Connect through this Unix domain socket, instead of using the network
55
---
66
(HTTP) Connect through this Unix domain socket, instead of using the network.

integration/hurl/tests_ok/help.out.pattern

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@ Options:
3333
--error-format <FORMAT>
3434
Control the format of error messages [default: short] [possible values: short, long]
3535
--file-root <DIR>
36-
Set root filesystem to import files [default: current directory]
36+
Set root directory to import files [default: current directory]
3737
-L, --location
3838
Follow redirects
3939
--location-trusted
40-
Follow redirects but allows sending the name + password to all hosts that the site may
41-
redirect to.
40+
Follow redirects but allows sending the name + password to all hosts that the site may redirect to.
4241
--glob <GLOB>
4342
Specify input files that match the given GLOB. Multiple glob flags may be used
4443
-0, --http1.0
@@ -58,11 +57,9 @@ Options:
5857
--interactive
5958
Turn on interactive mode
6059
-4, --ipv4
61-
Tell Hurl to use IPv4 addresses only when resolving host names, and not for example try
62-
IPv6
60+
Tell Hurl to use IPv4 addresses only when resolving host names, and not for example try IPv6
6361
-6, --ipv6
64-
Tell Hurl to use IPv6 addresses only when resolving host names, and not for example try
65-
IPv4
62+
Tell Hurl to use IPv6 addresses only when resolving host names, and not for example try IPv4
6663
--json
6764
Output each Hurl file result to JSON
6865
--max-redirs <NUM>
@@ -94,13 +91,13 @@ Options:
9491
--retry-interval <MILLISECONDS>
9592
Interval in milliseconds before a retry [default: 1000]
9693
--ssl-no-revoke
97-
(Windows) Tell Hurl to disable certificate revocation checks. WARNING: this option loosens
98-
the SSL security, and by using this flag you ask for exactly that.
94+
(Windows) Tell Hurl to disable certificate revocation checks. WARNING: this option loosens the SSL security, and by using this flag you ask for
95+
exactly that.
9996
--test
10097
Activate test mode
10198
--to-entry <ENTRY_NUMBER>
10299
Execute Hurl file to ENTRY_NUMBER (starting at 1)
103-
--unix-socket <path>
100+
--unix-socket <PATH>
104101
(HTTP) Connect through this Unix domain socket, instead of using the network
105102
-A, --user-agent <NAME>
106103
Specify the User-Agent string to send to the HTTP server

0 commit comments

Comments
 (0)