Support to print HTTP status code to std out and write content to another file
pj-codes opened this issue · comments
Pulkit commented
It would be really helpful, if we can add an extra flag just like curl to print status code directly to std out and write content to a file
Something like this
curl -s -o response.txt -w "%{http_code}" http://example.com
Igor Okulist commented
Oh, nice idea. -w supports a bunch of options, I’ll need to see what can be added and where I could use some help On Jan 3, 2023, at 8:27 AM, Pulkit ***@***.***> wrote:
It would be really helpful, if we can add an extra flag just like curl to print status code directly to std out and write content to a file
Something like this
curl -s -o response.txt -w "%{http_code}" http://example.com
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Igor Okulist commented
I like this -- I'll try to get some time to include this.