Hey folks!
So I'm trying to figure out how to properly use curl --post to send some data, but I’m kinda stuck. Like, what’s the right syntax for form data?
I tried something like:
`curl --post "name=foo&age=25" https://example.com`
But it’s not working?? Am I missing something obvious?
Also, what’s the diff between curl --post and just -X POST? Seen both around and got confused.
Oh, and if anyone’s got tips for sending JSON with curl --post, that’d be awesome too. My attempts keep getting rejected lol.
Thanks in advance! 🙏
So I'm trying to figure out how to properly use curl --post to send some data, but I’m kinda stuck. Like, what’s the right syntax for form data?
I tried something like:
`curl --post "name=foo&age=25" https://example.com`
But it’s not working?? Am I missing something obvious?
Also, what’s the diff between curl --post and just -X POST? Seen both around and got confused.
Oh, and if anyone’s got tips for sending JSON with curl --post, that’d be awesome too. My attempts keep getting rejected lol.
Thanks in advance! 🙏
