Open
Description
What is the current bug behavior?
Running echo 'GET https://www.wikipedia.org' | hurl --include --no-output
shows nothing on stdout, yet headers should be displayed.
What is the expected correct behavior?
Body should not be printed, but headers should.
Execution context
- Hurl Version (
hurl --version
):
hurl --version
hurl 5.0.1 (x86_64-apple-darwin23.0) libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.61.0
Features (libcurl): alt-svc AsynchDNS HSTS HTTP2 IPv6 Largefile libz NTLM SPNEGO SSL UnixSockets
Features (built-in): brotli
Possible fixes
A workaround exists for the http method GET
: use HEAD
instead.
However, this does not work with PUT
or POST
for example.
There should be a way to only display the response headers without the body.
Perhaps a new option --no-body
could be introduced.
Note: the manual entry for --no-output
seems partially misleading, and talks about the body:
--no-output
Suppress output. By default, Hurl outputs the body of the last response.
This is a cli-only option.