by robertlagrant · 2y ago · 0 comments
{"host":"test.net","port":443,"tls":true,"req":"GET /src HTTP/1.1\r\nHost:
As opposed to something like this? {"base": "https://test.net","req":"GET /src HTTP/1.1\r\nHost: jq -c 'select(.host == "test.net")' my_stored_results.jsonl
The port of some stored requests can be swapped out like this: jq -c '.port = 8080' my_stored_requests.jsonl
In other words: I chose to sacrifice compactness for "ease of tinkering".However, I was also thinking about specifying an optional/informational "url" field or something similar, which also includes the path; "https://test.net/src" for your example. This field would be ignored by tools, but one could more easily copy things over into curl or a browser for further investigations.