
1 Feb
2025
1 Feb
'25
9:06 p.m.
Found a solution from KWLUG... It seems 'curl' has --write-out feature, similar to printf() format, or here-document feature of shell. Eg. curl -o x.html -w '%output{x.json}%{http_code}\n%{http_version}\n%{header_json}\n%{json}\n' https://www.gtalug.org/ On 2025-01-31 01:07, William Park via talk wrote:
Hi all,
To build HTTP request, you use 'curl'.
After you get HTTP response, what utility do you use to extract stuffs you want? JSON format has 'jq', and XML format has 'xmlstarlet'. I'm looking for something like that but for HTTP format.