Skip to content

Instantly share code, notes, and snippets.

@tattyamm
Created January 5, 2013 03:10
Show Gist options
  • Save tattyamm/4459491 to your computer and use it in GitHub Desktop.
Save tattyamm/4459491 to your computer and use it in GitHub Desktop.
curl httpステータスコードだけ出力
curl 'http://www.google.co.jp' -w "\nstatus:%{http_code}" 2>/dev/null | fgrep 'status:'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment