How Do I Properly Set a Custom curl Header in My Request? or What’s the Best Way to Pass Headers Usin

20 Replies, 1088 Views

Wow, thanks for all the replies! The `-v` flag was a game-changer—turns out my headers *were* sending, but the server was ignoring them. Added `Accept: application/json` like someone suggested, and it worked!

Still confused about why some servers are so picky with curl header formatting, but at least I’ve got a working command now.

Gonna check out httpie too—curl’s quirks are exhausting. Appreciate the help!

Messages In This Thread



Users browsing this thread: 1 Guest(s)