facebook twitter hatena line email

Linux/コマンドメモ/curl

提供: 初心者エンジニアの簡易メモ
2019年2月15日 (金) 10:19時点におけるAdmin (トーク | 投稿記録)による版 (サンプル)

移動: 案内検索

curl用途

linuxでapiを叩けるなど

サンプル

getでアクセス

$ curl -i -X GET ttps://example.net/v1/video?hoge=1\&hoge2=22\&os=2
HTTP/1.1 200 OK
Content-Type: application/xml
Date: Thu, 14 Feb 2019 10:03:44 GMT
Server: Finch
Vary: Origin
Content-Length: 5027
Connection: keep-alive
testtest・・ここにレスポンス内容が・・・