Your curl header syntax is correct, but the server might ignore `Content-Type` if it’s not required. Try adding a dummy header like `-H "X-Test: foo"` to see if *that* gets through.
For multiple headers, stacking `-H` is the way to go. No cleaner method, really.
If you’re tired of curl’s quirks, maybe try `httpie`—it’s like curl but with saner defaults for headers and JSON.
For multiple headers, stacking `-H` is the way to go. No cleaner method, really.
If you’re tired of curl’s quirks, maybe try `httpie`—it’s like curl but with saner defaults for headers and JSON.
