Here’s a simple way to test a web service that handles HTTP GET or POST:
1. HTTP GET with Query String
curl http://example.com/service --get --data name1=value1 --data name2=value2
2. HTTP POST with name/value pairs
curl http://example.com/service --data name1=value1 --data name2=values2