fbpx
维基百科

cURL

cURL是一个开源项目,主要的产品是curl(命令行工具)和libcurl(C语言的API库),两者功能均是:基于网络协议,对指定URL进行网络传输。[3][4]

cURL
curl -O的输出结果
原作者丹尼尔·斯坦伯格
首次发布1997[1]
当前版本
  • 8.7.1 (2024年3月27日;穩定版本)[2]
源代码库
  • github.com/curl/curl
编程语言C
操作系统跨平台
类型FTP / HTTP
许可协议自由软件:MIT/X derivate license
网站curl.se

cURL涉及是任何网络协议传输,不涉及对具体数据的具体处理(如:html的渲染等)。

歷史 编辑

cURL最先於1997年釋出[5],當時的專案名稱是 httpget,之後改為 urlget [6]

libcurl 编辑

libcurl 是一个免费的客户端 URL 传输库,[7]支持 cookie、DICT、FTP、FTPS、Gopher、HTTP/1(亦支持 HTTP/2 和 HTTP/3)、HTTP POST、HTTP PUT、HTTP 代理隧道、HTTPS、IMAP、Kerberos、LDAP、MQTT、POP3、RTSP、RTMP、SCP、SMTP 和 SMB。该库支持文件 URI 方案、SFTP、Telnet、TFTP、文件传输恢复、FTP 上传、基于 HTTP 表单的上传、HTTPS 证书、LDAPS、代理和用户增强密码身份验证。

libcurl 库支持 GnuTLS、mbed TLS、NSS、IBM i 上的 gskit、Windows 上的 SChannel、macOS 和 iOS 上的 Secure Transport、OpenSSL、Boringssl、libressl、AmiSSL、wolfSSL、BearSSL 和 rustls 的 SSL/TLS。[8]

curl 编辑

curl 支持的通訊協定有 DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SBMS, SMTP, SMTPS, TELNET 和TFTP。[9]

例子 编辑

简单模式:

$ curl http://example.com 

详细(verbose)模式:

$ curl --verbose http://example.com $ curl -v http://example.com 

下载(output):

$ curl --output output.html http://example.com/ $ curl -o output.html http://example.com/ 

重定向:(curl默认不会重定向

$ curl --location output.html http://example.com/ $ curl -L output.html http://example.com/ 

外部链接 编辑

参考资料 编辑

  1. ^ . [2012-05-01]. (原始内容存档于2012-04-23). 
  2. ^ curl 8.7.0 and 8.7.1 | daniel.haxx.se. 2024年3月27日 [2024年3月27日] (英語). 
  3. ^ What does curl do?. ec.haxx.se. [2020-01-27]. (原始内容于2020-01-27). 
  4. ^ cURL必知必会-图书-图灵社区. www.ituring.com.cn. [2020-01-27]. (原始内容于2018-09-28). 
  5. ^ cURL: docs/HISTORY.md | Fossies. fossies.org. [2019-09-29]. (原始内容于2019-09-29). 
  6. ^ Changelog. 2020-01-04 [2020-01-04]. (原始内容于2020-01-05) (英语). The first curl release. The tool was named urlget before this. And httpget before that. 
  7. ^ IBM Developer. developer.ibm.com. [2022-07-09]. (原始内容于2022-09-01). 
  8. ^ curl supports rustls | daniel.haxx.se. [2022-07-09]. (原始内容于2022-08-09) (美国英语). 
  9. ^ Using curl. ec.haxx.se. [2020-01-27]. (原始内容于2020-01-27). 

curl, 提示, 此条目页的主题不是curl语言或旋度, 此條目可参照英語維基百科相應條目来扩充, 若您熟悉来源语言和主题, 请协助参考外语维基百科扩充条目, 请勿直接提交机械翻译, 也不要翻译不可靠, 低品质内容, 依版权协议, 译文需在编辑摘要注明来源, 或于讨论页顶部标记, href, template, translated, page, html, title, template, translated, page, translated, page, 标签, 是一个开源项目, 主要的产品是curl, . 提示 此条目页的主题不是Curl语言或旋度 此條目可参照英語維基百科相應條目来扩充 若您熟悉来源语言和主题 请协助参考外语维基百科扩充条目 请勿直接提交机械翻译 也不要翻译不可靠 低品质内容 依版权协议 译文需在编辑摘要注明来源 或于讨论页顶部标记 a href Template Translated page html title Template Translated page Translated page a 标签 cURL是一个开源项目 主要的产品是curl 命令行工具 和libcurl C语言的API库 两者功能均是 基于网络协议 对指定URL进行网络传输 3 4 cURLcurl O的输出结果原作者丹尼尔 斯坦伯格首次发布1997 1 当前版本8 7 1 2024年3月27日 穩定版本 2 源代码库github wbr com wbr curl wbr curl编程语言C操作系统跨平台类型FTP HTTP许可协议自由软件 MIT X derivate license网站curl wbr secURL涉及是任何网络协议传输 不涉及对具体数据的具体处理 如 html的渲染等 目录 1 歷史 2 libcurl 3 curl 3 1 例子 4 外部链接 5 参考资料歷史 编辑cURL最先於1997年釋出 5 當時的專案名稱是 httpget 之後改為 urlget 6 libcurl 编辑libcurl 是一个免费的客户端 URL 传输库 7 支持 cookie DICT FTP FTPS Gopher HTTP 1 亦支持 HTTP 2 和 HTTP 3 HTTP POST HTTP PUT HTTP 代理隧道 HTTPS IMAP Kerberos LDAP MQTT POP3 RTSP RTMP SCP SMTP 和 SMB 该库支持文件 URI 方案 SFTP Telnet TFTP 文件传输恢复 FTP 上传 基于 HTTP 表单的上传 HTTPS 证书 LDAPS 代理和用户增强密码身份验证 libcurl 库支持 GnuTLS mbed TLS NSS IBM i 上的 gskit Windows 上的 SChannel macOS 和 iOS 上的 Secure Transport OpenSSL Boringssl libressl AmiSSL wolfSSL BearSSL 和 rustls 的 SSL TLS 8 curl 编辑curl 支持的通訊協定有 DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTMP RTMPS RTSP SCP SFTP SMB SBMS SMTP SMTPS TELNET 和TFTP 9 例子 编辑简单模式 curl http example com详细 verbose 模式 curl verbose http example com curl v http example com下载 output curl output output html http example com curl o output html http example com 重定向 curl默认不会重定向 curl location output html http example com curl L output html http example com 外部链接 编辑官方网站 nbsp 官方英文电子书 页面存档备份 存于互联网档案馆 官方中文电子书 页面存档备份 存于互联网档案馆 参考资料 编辑 cURL History Page 2012 05 01 原始内容存档于2012 04 23 curl 8 7 0 and 8 7 1 daniel haxx se 2024年3月27日 2024年3月27日 英語 引文格式1维护 未识别语文类型 link What does curl do ec haxx se 2020 01 27 原始内容存档于2020 01 27 cURL必知必会 图书 图灵社区 www ituring com cn 2020 01 27 原始内容存档于2018 09 28 cURL docs HISTORY md Fossies fossies org 2019 09 29 原始内容存档于2019 09 29 Changelog 2020 01 04 2020 01 04 原始内容存档于2020 01 05 英语 The first curl release The tool was named urlget before this And httpget before that IBM Developer developer ibm com 2022 07 09 原始内容存档于2022 09 01 curl supports rustls daniel haxx se 2022 07 09 原始内容存档于2022 08 09 美国英语 Using curl ec haxx se 2020 01 27 原始内容存档于2020 01 27 取自 https zh wikipedia org w index php title CURL amp oldid 80526972, 维基百科,wiki,书籍,书籍,图书馆,

文章

,阅读,下载,免费,免费下载,mp3,视频,mp4,3gp, jpg,jpeg,gif,png,图片,音乐,歌曲,电影,书籍,游戏,游戏。