curl

 

 

 

 

 

curl 语法 curl --help 查看

url = http://www.baidu.com

1. get请求 curl $url 

2. post请求。curl -d 'xxx' $url

3 poxy使用 curl -x 'http://127.0.0.1:8080' $url

参数

-H 'Content-Type:application/json' 消息头参数设置

-u username:password. 用户认证

-d 要发送的post数据

--data-urlencode. 对内容进行编码

-o 写文件

-x 代理http代理

-v 打印

jq可以使json输出更好看

posted @ 2021-09-24 16:55  sunshine100034  阅读(22)  评论(0)    收藏  举报