Copyright: by DongBao https://blog.csdn.net/aaaadong/article/details/90713156
Meaning curl -h to see the request parameter
information -v display request
-X option to specify other protocols
get:
curl -v 127.0.0.1:8080/helloworld
post:
curl -v 127.0.0.1:8080/helloworld -d 'age=14&cupSize=C'
curl -v -X POST 127.0.0.1:8080/helloworld -d 'age=14&cupSize=C'
put:
curl -v -X PUT -d "age=19&cupSize=C" 127.0.0.1:8080/helloworld
delete:
curl -v -X DELETE 127.0.0.1:8080/helloworld