How do I send a POST request from curl correctly? or What's the best way to make a POST request from

22 Replies, 1520 Views

Thanks for all the tips, folks! Tried the JSON with single quotes and `-v` flag—turns out the server was rejecting it because of a missing `User-Agent` header.

Added `-H "User-Agent: MyScript"` and it worked! Still figuring out the auth part though—does `-u` work with tokens or just user:pass?

Also, gonna check out httpie—looks way cleaner for testing. Appreciate the help!

Messages In This Thread



Users browsing this thread: 1 Guest(s)