How Do You Use cURL With Headers?
Use curl's -H or --header option to send a Hypertext Transfer Protocol (HTTP) request header. Repeat the option for multiple fields, and use --json for JavaScript Object Notation (JSON) bodies. Inspect traffic with -v, -i, -I, or -D, keep credentials out of saved commands, and review custom fields before redirects.





