Wget与Curl
wget
-
定义
- 下载工具
-
格式
wget options url
-
使用方法
-
wget url- 直接下载网页的内容
-
wget -o file url- 会话返回信息保存在文件中
-
wget -O file url- 把返回内容结果保存在内容中
-
wget --spider url- 检测地址是否有效
-
wget --nv url (not verbose)- 输出返回的精简信息
-
curl
-
定义
- 上传和下载工具
-
格式
curl options url
-
使用方法
-
curl url- 下载网页内容
-
curl -d url- 向网页提交数据
-

浙公网安备 33010602011771号