I have certain HTTP calls the provide a huge response, and fill up quite a few monitor spaces. And in those calls, the most relevant information is at the beginning of the response, so I want to read that first.
So I have to page up quite a few times (or use reverse search in terminal). I rather just view the response on a page-by-page-approach starting from the top.
I tried piping the output of httpie into less
and most
, yet thereby I lose both colors and formatting.
Is there a way to get paginated output?
Nice, I figured it out on my own. Hitting the manual does help:
http --pretty=all POST YOUR_ENDPOINT < data.json | less -r
http --pretty=all get https://google.com | less
does it! 馃槃
Most helpful comment
Nice, I figured it out on my own. Hitting the manual does help: