Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pj-codes opened this issue Jan 3, 2023 · 3 comments

Comments

@pj-codes
Copy link

pj-codes commented Jan 3, 2023

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
Copy link
Owner

okigan commented Jan 3, 2023 via email

@okigan
Copy link
Owner

okigan commented Jan 11, 2023

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

@pj-codes
Copy link
Author

@okigan That would be awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants