How do I properly format a POST in cURL? Need help with syntax! or What's the correct way to send a P

16 Replies, 1020 Views

Wow, thanks everyone! The `-v` flag helped me see the server was rejecting it due to a missing auth header. Also, the JSON tip with escaped quotes worked like a charm.

Quick follow-up: How do I handle nested JSON in a post in curl? Tried `{"key":{"nested":"value"}}` but got a 400. Do I need to stringify it?

Messages In This Thread



Users browsing this thread: 1 Guest(s)