I have shellscript with curl command.
and want to make request and response log of same curl command.
Hopefully the request log will includes…
・the exact url that request was sent
・the infomation can be aquired with -v
GET /path_of_requrl HTTP/1.1
Host: {hosts}
User-Agent: curl/X.X.X
Accept: /
And the response log will includes…
・the json data without translating it to [XXX bytes data]
・the infomation can be aquired with -v
HTTP/1.1 200 OK
X-Powered-By: Express
Content-Type: application/json; charset=utf-8
X-Request-Id: undefined
Content-Length: 3497
ETag: W/”XXXXXXXXXXXXX”
Date: Tue, 14 May 2024 02:04:58 GMT
Connection: keep-alive
Keep-Alive: timeout=5
-v and –trace option did not output enough information.
Please give us your help, thank you ahead.
option of -v, –trace, –trace-ascii, -D etc…