Created
May 3, 2017 06:57
-
-
Save nicolaihald/66cb1f649df2291e361d648f7d7fcd09 to your computer and use it in GitHub Desktop.
Get HTTP status code with curl AND print response on new line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| while true; do curl -s -o /dev/null -w "%{http_code}\n" http://localhost; sleep 2; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment