灌溉梦想,记录脚步
标签类目:curl

curl

1) 通过curl直接访问sina网站
curl http://www.sina.com.cn

2) 你也可以把sina保存期来
curl http://www.sina.com > sina 或 curl -o sina http://www.sina.com.cn

3) 同时可以通过代理来访问网页
curl -x 10.54.38.18:8080 -o sina.html http://www.sina.com.cn

4) 可以把cookies存放到一个文件里
curl -x 10.54.38.18:8080 -o sina.html -D cookie002.txt http://www.sina.com.cn
继续阅读 »