Skip to content

Instantly share code, notes, and snippets.

@pleshevskiy
Created March 10, 2021 12:41
Show Gist options
  • Save pleshevskiy/75eb96c40768a1ff0a397969f53a845d to your computer and use it in GitHub Desktop.
Save pleshevskiy/75eb96c40768a1ff0a397969f53a845d to your computer and use it in GitHub Desktop.
Get only http status of request via curl
curl -o /dev/null -s -w "%{http_code}\n" http://localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment