curl -H "Content-Type: application/json" -X POST -d 'JSONTOPOST' http://URLOFTHESERVER
The curl command can be used to POST json from a command line to a url.
When using the curl command:
$ curl -H "Content-Type: application/json" -X POST -d '{"input":"This is a test"}' http://oliviertech.com/rest/urlencode/ {"output":"This+is+a+test","input":"This is a test"}