Last active
October 10, 2015 17:58
-
-
Save mtkd/3729321 to your computer and use it in GitHub Desktop.
Revisions
-
mtkd revised this gist
Nov 26, 2013 . 1 changed file with 10 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,14 @@ # return only HTTP status code curl -sL -w "%{http_code}\\n" "http://news.ycombinator.com/" -o /dev/null # return only HTTP status code and 302 URL curl -sL -w "%{http_code} %{url_effective}\\n" "http://news.ycombinator.com/" -o /dev/null # header only curl -I news.ycombinator.com # basic auth curl -u username:password "http://news.ycombinator.com" -o /dev/null # IIS auth curl -u username:password "http://news.ycombinator.com" -o /dev/null --ntlm -
mtkd revised this gist
Sep 20, 2012 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1,5 @@ # return only HTTP status code curl -sL -w "%{http_code}\\n" "http://news.ycombinator.com/" -o /dev/null # header only curl -I news.ycombinator.com -
mtkd created this gist
Sep 15, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ curl -sL -w "%{http_code}\\n" "http://news.ycombinator.com/" -o /dev/null