okigan / awscurl

curl-like access to AWS resources with AWS Signature Version 4 request signing.
MIT License
755 stars 94 forks source link

Support to print HTTP status code to std out and write content to another file #148

Open pj-codes opened 1 year ago

pj-codes commented 1 year ago

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

okigan commented 1 year ago

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: @.***>

okigan commented 1 year ago

I like this -- I'll try to get some time to include this.

pj-codes commented 1 year ago

@okigan That would be awesome