curl -X POST -d "a":"b" -d "c":"d" url
curl -X GET -d "a=b" url -H "Authorization: token"
[root@k8s-master sh-test]# curl -d "a":"b" -d "c":"d" http://192.168.159.1:8001/helloworld
{"code":200,"message":"post method","data":{"a:b":"","c:d":""}}[root@k8s-master sh-test]#
[root@k8s-master sh-test]# curl -d "k=v" http://192.168.159.1:8001/helloworld -G
{"code":200,"message":"get method","data":{"k":"v"},"auth":""}[root@k8s-master sh-test]#
[root@k8s-master sh-test]# curl -d "k=v" http://192.168.159.1:8001/helloworld --get
{"code":200,"message":"get method","data":{"k":"v"},"auth":""}[root@k8s-master sh-test]#
[root@k8s-master sh-test]# curl -d "a":"b" -d "c":"d" http://192.168.159.1:8001/helloworld -X POST
{"code":200,"message":"post^C
[root@k8s-master sh-test]# ^C
[root@k8s-master sh-test]# ^C
[root@k8s-master sh-test]# curl -d "a":"b" -d "c":"d" http://192.168.159.1:8001/helloworld -X POST
{"code":200,"message":"post method","data":{"a:b":"","c:d":""}}[root@k8s-master sh-test]#
[root@k8s-master sh-test]#
[root@k8s-master sh-test]# curl -d "k=v" http://192.168.159.1:8001/helloworld --get -H "AUTHORIZATION: TOKEN"
{"code":200,"message":"get method","data":{"k":"v"},"auth":"TOKEN"}[root@k8s-master sh-test]#
[root@k8s-master sh-test]#
[root@k8s-master sh-test]#