curl

Table of Contents

curl

https://qiita.com/yasuhiroki/items/a569d3371a66e365316f

POST -X POST
   

ファイルからPOSTデータを読み込む

$ curl -d @file_name.json -H "Content-Type: application/json" https://example.com

ヘッダ情報を取得する

$ curl -I https://gside.org
HTTP/1.1 200 OK
Date: Mon, 04 Feb 2019 11:52:00 GMT
Server: Apache/2.4.34 () OpenSSL/1.0.2k-fips SVN/1.7.14
Upgrade: h2,h2c
Connection: Upgrade
Accept-Ranges: bytes
Content-Type: text/html; charset=UTF-8

Validate