[curl] Add a header to a request

Created on November 30, 2026

Use -H to send a request header. The example supplies Content-Type: application/json.

curl -H 'Content-Type: application/json' https://example.com
Shell command curl