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也是有優勢的,呵呵)
轉載于:https://www.cnblogs.com/duanxz/p/4388664.html
總結
以上是生活随笔為你收集整理的curl与wget区别的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 设计模式原则之依赖倒置原则
- 下一篇: 汇编语言基础 debug的使用