通過命令列使用 curl

顯示捲曲版本:

curl --version

獲取遠端資源並將其顯示在終端中:

curl http://stackoverflow.com

獲取遠端資源並將其儲存在本地檔案中:

curl -o file https://stackoverflow.com

新增標題以響應:

curl -i http://stackoverflow.com

僅輸出標題:

curl -I http://stackoverflow.com