-
Hello!I'm pretty new to ContextAs a proof of concept, I wanted to bootstrap download hurl with a hurlfile.
Running this file with QuestionBasically, is it intended that the output is both the specified file and stdout? Other Discussions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, It's good to have newcomers because we can see what's need to be improved, in the documentation and in the way we present Hurl. The intended way to behave for Hurl is: By default, Hurl executes all HTTP requests and outputs the response body of the last HTTP call. (see here). So, given this Hurl file:
And run like this: $ hurl sample.hurl Hurl will output the content of You can save the output of the last response like this: $ hurl sample.hurl > out.txt Or $ hurl --output out.txt sample.hurl Note that we have a current bug for binary responses (see #2306): like curl, for binary responses, we should not output the last response to standard output. We have also a way to specify options on a particular request with
And run with this: $ hurl --no-output sample.hurl I've specified With Hurl 4.3.0 (not released yet), you can use
I hope it's more clear! |
Beta Was this translation helpful? Give feedback.
Hi,
It's good to have newcomers because we can see what's need to be improved, in the documentation and in the way we present Hurl.
The intended way to behave for Hurl is: By default, Hurl executes all HTTP requests and outputs the response body of the last HTTP call. (see here).
So, given this Hurl file:
And run like this:
Hurl will output the content of
bar.txt
on standard output. This is the designed (expected?) behavior. We've done this to be kind of like curl, and to get a unique response in workflows that require multiple steps.You can save the output of the last response like this: