Curl – HttpPost Example

Categories: Development Notes; Tagged with: ; @ June 13th, 2015 0:34

Http Post without Parameter

$ curl -X POST -H ‘Content-Length: 0’ http://127.0.0.1:8080/_qs/listAllInstitutions

Set content-Lenght=0 to avoid HTTP ERROR 411 – ‘Length required’

 

Http Post with Parameters

curl  –data “userId=user-id”  http://127.0.0.1:8080/_qs/getUserInfo

<->



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.