mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-19 01:43:18 +08:00
hurl: add page (#20971)
Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com> Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
co-authored by
Ivan Baluta
Managor
parent
608f505fcf
commit
b1577880cb
@@ -0,0 +1,29 @@
|
||||
# hurl
|
||||
|
||||
> Run and test HTTP requests defined in a simple plain text format.
|
||||
> Powered by curl.
|
||||
> More information: <https://hurl.dev/docs/manual.html>.
|
||||
|
||||
- Run HTTP requests from a file:
|
||||
|
||||
`hurl {{path/to/file.hurl}}`
|
||||
|
||||
- Run HTTP requests and set variable to use:
|
||||
|
||||
`hurl --variable {{VariableName}}={{value}} {{path/to/file.hurl}}`
|
||||
|
||||
- Run HTTP requests with secret to be redacted on logs and reports:
|
||||
|
||||
`hurl --secret {{SecretName}}={{value}} {{path/to/file.hurl}}`
|
||||
|
||||
- Run HTTP requests and inject variables and secret from file:
|
||||
|
||||
`hurl --variables-file {{path/to/variables_file}} --secrets-file {{path/to/secrets_file}} {{path/to/file.hurl}}`
|
||||
|
||||
- Run specific HTTP requests from file, from entry 2 to 5:
|
||||
|
||||
`hurl --from-entry 2 --to-entry 5 {{path/to/file.hurl}}`
|
||||
|
||||
- Test HTTP requests from file and generate report in html:
|
||||
|
||||
`hurl --test --report-html {{path/to/output_directory}} {{path/to/file.hurl}}`
|
||||
Reference in New Issue
Block a user