![]() |
|
How Do I Properly Set a Custom curl Header in My Request? or What’s the Best Way to Pass Headers Usin - Printable Version +- Proxy Community (https://proxycommunity.com/forum) +-- Forum: Technical Community Support (https://proxycommunity.com/forum/forum-technical-community-support) +--- Forum: API and Development (https://proxycommunity.com/forum/forum-api-and-development) +--- Thread: How Do I Properly Set a Custom curl Header in My Request? or What’s the Best Way to Pass Headers Usin (/thread-how-do-i-properly-set-a-custom-curl-header-in-my-request-or-what%E2%80%99s-the-best-way-to-pass-headers-usin) |
“” - StealthVoyagerX - 24-03-2025 curl headers can be finicky af. Your command’s correct, but maybe the server’s picky about order. Try putting `-H "Content-Type: application/json"` *after* the URL. For multiple headers, yeah, `-H` spam is the norm. No way around it. If you’re done with curl’s nonsense, `httpie` is a nice alternative. Or use `curl-to-Python` tools to convert your command to code. |