Created
February 21, 2013 09:12
-
-
Save yuroyoro/5003402 to your computer and use it in GitHub Desktop.
curlコマンドで、HTTP のステータスコードをすばやくしらべる!
This file contains 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
curl -s http://www.ietf.org/rfc/rfc2616.txt | grep -E '^\s+\|?\s+"[0-9]{3}"\s+;' | sed -r 's/^\s+\|?\s+"([0-9]+)"\s+;.+:(.*)$/\1 : \2/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment