Linuxネットワークcurl
nice

curlネットワーク

curl -X

URLへのデータ送受信を行います。

構文

curl [OPTION]... URL

使用例

下記の値を入力するとサンプルに即時反映されます。

GET
curl
https
api
example
com
users
POST
health
# GET 요청
curl https://api.example.com/users

# JSON POST 요청
curl -X POST https://api.example.com/users \
  -H "Content-Type: application/json" \
  -d '{"name": "Alice"}'

# 응답 헤더 포함
curl -i https://api.example.com/health