jonderry jonderry - 1 year ago 109
Linux Question

How do I pipe or redirect the output of curl -v?

For some reason the output always gets printed to the terminal, regardless of whether I redirect it via 2> or > or |. Is there a way to get around this? Why is this happening?

Answer Source

add the -s (silent) option to remove the progress meter, then redirect stderr to stdout to get verbose output on the same fd as the response body

curl -vs 2>&1 | less
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download