Quick HTTP POST requestHave you ever wanted to quickly send a POST request to a HTTP server? It's pretty easy to do using curl.
For example to send XML via a POST request, you could use the following:
I use this method for testing almost every day. Saves a lot time.
curl --header "Content-Type: text/xml" --data "...." http://www.foo.com/
There's a tip entry in the wiki too.
Another curl command I use often is:to get a HEAD request.
curl -I http://www.example.com/
And:to get the compressed request.
curl --header "Accept-Encoding: gzip" http://www.foo.com/ | gunzip