How to properly send curl post data with headers and parameters? or What's the best way to format cur

18 Replies, 1135 Views

OP here—thanks for all the tips! Tried the `-v` flag and saw a 400 error. Turns out the server was expecting `Content-Type: text/json` (weird, right?).

Also, the `jq` trick worked like a charm for escaping. One last Q: how do I handle nested JSON in curl post data without it becoming a mess?

(And yeah, httpie looks dope—gonna try that next.)

Messages In This Thread



Users browsing this thread: 1 Guest(s)