Run a HTTL file

To run a HTTL file, use the following command:

httl < file >

Where:

  • file - the path to the HTTL file

Alternatively, you can use input redirection

httl < file_path

Or even heredoc syntax

httl <<EOF
@base: https://httl.dev/api
@auth-basic: admin admin
post /auth
EOF

Last updated on April 2, 2025