LinuxNetworkcurl

Transfer data from or to a URL.

Syntax

curl [OPTION]... URL

Example

Enter values below to update the example in real time.

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