win7配置curl
https://www.cnblogs.com/kohler21/p/16248446.html
用法
-
http请求
curl -vv url
:-vv可以看到请求与响应的详细信息 -
发送POST请求
http://imyhq.com/telecommunication/41018.html
加上-X POST -
指定网卡
https://blog.csdn.net/qq_32605451/article/details/126153606 -
超时时间
使用--max-time设置整个请求的超时时间为10秒:
curl --max-time 10 http://example.com
使用--connect-timeout设置连接超时时间为5秒:
curl --connect-timeout 5 http://example.com
错误总结
- Warning: Binary output can mess up your terminal. Use “–output -” to tell
Warning: curl to output it to your terminal anyway, or consider "–output
Warning: " to save to a file.
https://blog.csdn.net/hezuijiudexiaobai/article/details/106169526
sudo curl http://model.scir.yunfutech.com/model/ltp_data_v3.4.0.zip --output pyltp.zip
需要指定文件名
0 条评论