How do I properly use 'curl add header' to include custom headers in my requests?

16 Replies, 1764 Views

Your `curl add header` syntax is spot on! Stacking `-H` is the way to go.

If you’re paranoid about headers not being sent (been there lol), use `-v` to debug. It’ll show you the raw request, including headers.

Another tip: if you’re sending JSON data, make sure to include `-H "Content-Type: application/json"`. Servers can be picky about that.

Messages In This Thread



Users browsing this thread: 1 Guest(s)