Curl
Curl is command line tool and library for transferring data with URLs.
入门使用
$ curl baidu.com
<html>
<meta http-equiv="refresh" content="0;url=http://www.baidu.com/">
</html>
Windows 使用
下载
Win64 下载对应压缩包,解压
配置
System32
-
解压下载好的文件,拷贝
I386/curl.exe
文件到C:\Windows\System32
-
然后就可以在DOS窗口中任意位置,使用curl命令了。
环境变量配置
- 新建系统变量
CURL_HOME=你的curl目录位置\curl-${version}
- 设置 Path
path 末尾添加 ;%CURL_HOME%\I386