"Struggling with curl POST data – any tips or examples?"
Hey guys, I’ve been trying to send some curl post data to an API, but it’s just not working.
I’m using something like:
`curl -X POST https://example.com/api -d "key=value"`
But the server keeps rejecting it or not seeing the data. Am I missing something obvious?
Also, what’s the diff between `-d` and `--data-raw`? And when should I use `-H "Content-Type: application/json"`?
If anyone has a simple curl post data example that actually works, pls share!
Thanks in advance, my sanity is hanging by a thread here 😅
Hey guys, I’ve been trying to send some curl post data to an API, but it’s just not working.
I’m using something like:
`curl -X POST https://example.com/api -d "key=value"`
But the server keeps rejecting it or not seeing the data. Am I missing something obvious?
Also, what’s the diff between `-d` and `--data-raw`? And when should I use `-H "Content-Type: application/json"`?
If anyone has a simple curl post data example that actually works, pls share!
Thanks in advance, my sanity is hanging by a thread here 😅
