Last-modified: 2016-04-20 (水) 18:24:25
curl/チートシート

ヘッダのみ取得

Everything is expanded.Everything is shortened.
  1
 
curl -LI <URL>

安全でないSSL/TLS接続を許可する

Everything is expanded.Everything is shortened.
  1
 
curl -k <URL>

SSL/TLSハンドシェイクも表示

Everything is expanded.Everything is shortened.
  1
 
curl -v <URL>

完全なトレースログを出力

Everything is expanded.Everything is shortened.
  1
 
curl --trace <出力先> <URL>

暗号スイートを指定

暗号スイート一覧 https://www.openssl.org/docs/manmaster/apps/ciphers.html

Everything is expanded.Everything is shortened.
  1
 
curl --ciphers <暗号スイート> <URL>

POSTパラメータ

Everything is expanded.Everything is shortened.
  1
  2
  3
  4
 
 
-
!
curl <URL> -F "<POSTパラメータ>"
 
# 例.
curl https://foo.bar -F "key1=value1" -F "key2=value2"