-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to always print response body #1745
Comments
You have also |
So there are two options:
$ hurl --write-out "Code %{response_code}"
Code 200
Code 200
Code 404 This way, printing each body response could be: $ hurl --write-out "%{response}"
<html><body><...></body></html>
<html><body><...></body></html>
<html><body><...></body></html>
Also, we could support
|
@Lythenas a small workaround for this issue is to use
|
@fabricereix @lepapareil we will this option name |
Problem to solve
I would like to see all response bodies (not just the last). For me this is most useful with
--verbose
but it might also be useful without that flag.I know that
--very-verbose
already prints all response bodies but that has a lot more other information that I don't really want or need to see (like the timing, dns and ssl debug logs).Additionally it might be good to also add this to the html and json output.
Proposal
I would suggest adding a flag (maybe
--all-output
) that enables printing all response bodies.Additional context and resources
This is mostly useful for debugging (or retracing) a failed test in cases where asserts and captures can't easily do that.
An alternative would be to add a capture for the entire body after every request in hurl (which would also be displayed with
--verbose
).Tasks to complete
The text was updated successfully, but these errors were encountered: