Skip to content

Intended use of [Options] output ? #2532

Answered by jcamiel
CodeMan99 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

GET https://example.org/foo.txt

GET https://example.org/bar.txt

And run like this:

$ hurl sample.hurl

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:

$ hurl sample.h…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CodeMan99
Comment options

Answer selected by CodeMan99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants