I found a lot of examples on how to use simple POST commands in cURL, but I didn't find examples on how to send full HTTP POST commands, which contain:
- Headers (Basic Authentication)
- HTTP Params (
s=1&r=33) - Body Data, some XML string
All I found is:
echo "this is body" | curl -d "ss=ss&qq=11" http://localhost/
That doesn't work, and it sends the HTTP parameters as the body.