Hey folks!
Struggling with curl --post here... can't seem to get it right.
Trying to send some JSON data, but the server keeps yelling at me.
Is the syntax like:
`curl --post -H "Content-Type: application/json" -d '{"key":"value"}' http://example.com`
Or am I missing something?
Also, when shoudl I even use curl --post? Like, is it just for APIs or what?
Pls halp, my terminal is judging me rn.
P.S. Why does it sometimes fail silently? So annoying.
Thanks!
Struggling with curl --post here... can't seem to get it right.
Trying to send some JSON data, but the server keeps yelling at me.
Is the syntax like:
`curl --post -H "Content-Type: application/json" -d '{"key":"value"}' http://example.com`
Or am I missing something?
Also, when shoudl I even use curl --post? Like, is it just for APIs or what?
Pls halp, my terminal is judging me rn.
P.S. Why does it sometimes fail silently? So annoying.
Thanks!
