diff --git a/docs/curl.html b/docs/curl.html index 462760fd..d1aa00a2 100644 --- a/docs/curl.html +++ b/docs/curl.html @@ -41,7 +41,7 @@
此 Curl 备忘清单包含命令和一些常见的 Curl 技巧示例。
Curl 是一种在服务器之间传输数据的工具,支持协议,包括 HTTP/FTP/IMAP/LDAP/POP3/SCP/SFTP/SMB/SMTP 等
下载一系列文件(输出foo_file1.webp
、foo_file2.webp…bar_file1_webp
等)
$ curl http://url/file > file
+
+$ curl --user username:password http://example.com/
+$ curl -u username:password http://example.com/
+
+$ curl -o file http://url/file
+$ curl --output file http://url/file
+
+$ curl -I url
+# 显示头信息
+
+$ curl -o file http://url/file
+$ curl --output file http://url/file
+
+$ curl -s http://url/myscript.sh
+
+curl -K file
+# 从文件中读取配置
+curl --config file
+$HOME/.curlrc # 类 UNIX 系统中的默认配置文件
+