HTTP 메서드와 데이터를 지정해 요청합니다.
문법
curl -X METHOD -d DATA URL예제
아래 값을 입력하면 예제에 즉시 반영됩니다.
curl→PUT→https→api→example→com→users→curl -X PUT https://api.example.com/users/1 \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Bob", "active": true}'