curl与wget区别
1.curl是libcurl这个库支持的,wget是一个纯粹的命令行命令。
2.curl支持更多的协议。curl supports FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, POP3, IMAP, SMTP and RTSP at the time of this writing. Wget supports HTTP, HTTPS and FTP.
3.curl 默认支持HTTP1.1(也支持1.0),而wget仅仅支持HTTP1.0规范。引用wget的man page中的一段话吧,Please be aware that Wget needs to know the size of the POST data in advance. It's not quite clear how to work around this limitation inherent in HTTP/1.0. Although HTTP/1.1 introduces chunked transfer that doesn't require knowing the request length in advance, a client can't use chunked unless it knows it's talking to an HTTP/1.1 server. And it can't know that until it receives a response, which in turn requires the request to have been completed -- a chicken-and-egg problem.
4.curl在指定要下载的链接时能够支持URL的序列或集合,而wget则不能这样;
5.wget支持递归下载,而curl则没有这个功能。(这是wget的一个主要好处,wget也是有优势的,呵呵)
最新文章
- 探索ASP.NET MVC5系列之~~~2.视图篇(上)---包含XSS防御和异步分部视图的处理
- [LeetCode] Implement strStr() 实现strStr()函数
- laypage
- 登陆mysql时出现unknown variable 'character_set_client=UTF8' 的错误
- 从零开始设计SOA框架(二):请求/响应参数的设计
- Html-Css-div标签嵌套浮动div标签时无法撑开外部div的解决
- Delphi 中的全局快捷键+给指定窗体发送按键
- 《转》读discuzx3.1 数据库层笔记
- 排序算法合集 python
- Mysql主从原理
- Windows下安装tesserocr
- 盒模型的垂直居中css
- C - 树的统计Count - 树链剖分
- python3.5+selenium3环境搭建
- JAVA接口传递参数(POST),从接口接收数据(JSON) -----记录
- js调试系列: 源码定位与调试[基础篇]
- mariadb设置初始密码
- ListPopupWindow 列表弹窗 常见弹窗区别
- Windows NTLM Hash和Hash传递、Key传递攻击
- 2018.07.04 POJ 1113 Wall(凸包)