Test post using curl.