- 追加された行はこの色です。
- 削除された行はこの色です。
**使い方メモ [#md481544]
curl https://example.com/temperature_130010.json // 通常
curl https://example.com/temperature_130010.json -o result.log //戻り電文をファイル出力
curl https://example.com/temperature_130010.json -O //戻り電文をファイル出力
curl https://example.com/temperature_130010.json -s // ゲージを出さない(エラーもでない)
curl https://example.com/temperature_130010.json -Ss // ゲージを出さない(エラーは出しつつ)。
curl https://example.com/temperature_130010.json -I // レスポンスヘッダを出す
curl https://example.com/temperature_130010.json -i // ヘッダ、Bodyを出す
curl https://example.com/temperature_130010.json -v // リクエストヘッダを出す
curl https://example.com/temperature_130010.json --trace temperature_130010.log //traceのログをとる1
curl https://example.com/temperature_130010.json --trace-ascii temperature_130010_ascii.log //traceのログをとる2
curl https://example.com/temperature_130010.json --trace-ascii temperature_130010_time.log --trace-time //traceのログをとる(日時つき)
** Key/valueでPOST [#jd9fa1d6]
curl -X POST --data-urlencode
'payload={"channel": "#general", "username": "webhookbot",
"text": "This is posted to #general and comes from a bot named webhookbot.",
"icon_emoji": ":ghost:"}'
https://hooks.slack.com/services/xxxx/xxxx/xxxxx
**関連リンク [#d4a7a56a]
-[[curl コマンド 使い方メモ - Qiita>http://qiita.com/yasuhiroki/items/a569d3371a66e365316f]]
-[[curl コマンドで、特定の(ヘッダ)情報だけを取り出す。レスポンスヘッダ - それマグで!>http://takuya-1st.hatenablog.jp/entry/2014/09/23/225817]]