Markdown

[Linux] 如何使用CURL去測試API

curl http://test123/bank/register -X POST -i -H “Content-Type:application/json” -H “Accept:application/json” -d ‘{“username” : hi, “password” : “16500asdas65”}’

REF:
http://blog.kent-chiu.com/2013/08/14/testing-rest-with-curl-command.html

https://curl.haxx.se/docs/manpage.html

https://www.lifewire.com/curl-definition-2184508

留言