How do I properly use curl --post to send data in a request? or What's the correct syntax for curl --

19 Replies, 2367 Views

lol yeah curl --post isn’t a thing, mate. You wanna use `-d` or `--data-urlencode` for form stuff.

For JSON, slap on a header like `-H "Content-Type: application/json"` and then your JSON data.

Also, check out Postman if you’re struggling—way easier to visualize requests.

Messages In This Thread



Users browsing this thread: 1 Guest(s)