get
curl -G http://www.xxxx.com/show?userId=111
post
curl -d "username=sunnyxd&password=12345" http://www.xxxx.com/show
https://stackoverflow.com/questions/14978411/http-post-and-get-using-curl-in-linux
原文:https://www.cnblogs.com/jade-north/p/15195052.html