curlコマンドの一般的な使用法

コード例:

curl -I http://X.X.X.X:9000/cookies -x X.X.X.X:80 -b “If-Modified-Since=Web, 22-Feb-12 05:48:00 GMT"

curl -I http://X.X.X.X:9000/http -x X.X.X.X:80 –user-agent “Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)" -b “If-Modified-Since=Web, 22-Feb-12 05:48:00 GMT" –user “Archer:fuxk" –data “it is just a text"

curl -I http://X.X.X.X:9000/http –user-agent “Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)" -b “If-Modified-Since=Web, 22-Feb-12 05:48:00 GMT" –user “Archer:fuxk" –data “its is just a text"

curl -I http://X.X.X.X/public/txt/abc.txt –header “Cache-Control: max-age=60"
curl -I http://X.X.X.X

Source

Posted by arkgame