GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
hurl(1) Hurl Manual hurl(1)

hurlfmt - format Hurl files

hurlfmt [options] [FILE...]

hurlfmt formats Hurl files and converts them from/to other formats.

With no FILE, read standard input.

By default, hurlfmt outputs a formatted and colorized version of the input hurl file.


$ hurl hello.hurl
GET http://localhost:8000/hello


HTTP/1.0 200

hurlfmt can be used to convert to other format.


$ hurl hello.hurl --output json | jq
{
"entries": [
{
"request": {
"method": "GET",
"url": "http://localhost:8000/hello"
},
"response": {
"version": "HTTP/1.0",
"status": 200
}
}
]
}

hurlfmt can also be used to convert a curl command-line to Hurl


$ echo "curl http://localhost:8000/custom-headers -H 'Fruit:Raspberry'" | hurlfmt --in curl
GET http://localhost:8000/custom-headers
Fruit: Raspberry

Run in check mode. Exits with 0 if input is formatted correctly, 1 otherwise.

This can not be used with --output.

This option is not stable yet.

Colorize Output.

This can not be used --in-place.

Specify input format: hurl or curl.

Modify file in place.

This can be used only with text output.

Do not colorize output.

Specify output format: hurl, json or html.

Write output to FILE instead of stdout.

Output full html file with css instead of html fragment (default).

This can be used only with html output.

Usage help.

Prints version information

1

Failed to parse command-line options.

2

Input File Parsing Error.

https://hurl.dev

hurl(1)

24 Mar 2025 hurl 6.1.1

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.