Restlet POST using JSON

前端 未结 6 1494
独厮守ぢ
独厮守ぢ 2020-12-13 21:33

How do I implement Restlet function which accepts JSON post? And how do I test this using curl?

Thanks

6条回答
  •  渐次进展
    2020-12-13 22:07

    curl -u uid:4c521655 -X POST -H "Content-Type: application/json" -d "type=Big&data="{\"name\":\"test\"}"" --dump-header headers 'http://localhost:8190/appli/add'
    

提交回复
热议问题