curl -d -0 -o的使用
参考:https://www.ruanyifeng.com/blog/2019/09/curl-reference.html
-d
$ curl -d'login=emma&password=123'-X POST https://google.com/login
# 或者
$ curl -d 'login=emma' -d 'password=123' -X POST https://google.com/login使用
-dContent-Type : application/x-www-form-urlencoded-X POST
-d
-owget
$ curl -o example.html https://www.example.com上面命令将
www.example.comexample.html
-O
$ curl -O https://www.example.com/foo/bar.html上面命令将服务器回应保存成文件,文件名为
bar.html