add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -1,37 +1,37 @@
# curl
> 向 / 从一个服务器传输数据。
> 支持大多数协议,包括 HTTP, FTP, 和 POP3.
> 更多信息:<https://curl.se/docs/manpage.html>.
> 服务器传输数据。
> 支持大多数协议,包括 HTTP、HTTPS、FTP、SCP 等。
> 更多信息:<https://curl.se/docs/manpage.html>
- 将指定 URL 的内容下载到文件
- 发起一个 HTTP GET 请求,并将内容输出到 `stdout`
`curl {{http://example.com}} --output {{文件名}}`
`curl {{https://example.com}}`
- 将文件从 URL 保存到由 URL 指示的文件名中
- 发起一个 HTTP GET 请求,跟随任何 `3xx` 重定向,并将回复的头部和内容输出到 `stdout`
`curl --remote-name {{http://example.com/filename}}`
`curl --location --dump-header - {{https://example.com}}`
- 下载文件,跟随 重定向,并且自动 续传(恢复)前序文件传输
- 下载文件,将输出保存为 URL 指定的文件名
`curl --fail --remote-name --location --continue-at - {{http://example.com/filename}}`
`curl --remote-name {{https://example.com/filename.zip}}`
- 发送表单编码数据(`application/x-www-form-urlencoded` 的 POST 请求):
- 发送表单编码数据(`application/x-www-form-urlencoded` 类型的 POST 请求)。使用 `--data @file_name``--data @'-'``stdin` 读取
`curl --data {{'name=bob'}} {{http://example.com/form}}`
`curl -X POST --data {{'name=bob'}} {{http://example.com/form}}`
- 发送带有额外请求头,使用自定义请求方法的请求
- 使用额外的头部、定制的 HTTP 方法并通过代理(如 BurpSuite发送请求忽略不安全的自签名证书
`curl --header {{'X-My-Header: 123'}} --request {{PUT}} {{http://example.com}}`
`curl -k --proxy {{http://127.0.0.1:8080}} --header {{'Authorization: Bearer token'}} --request {{GET|PUT|POST|DELETE|PATCH|...}} {{https://example.com}}`
- 发送 JSON 格式数据,并附加正确的 `Content-Type` 请求头
- JSON 格式发送数据,指定适当的 Content-Type 头部
`curl --data {{'{"name":"bob"}'}} --header {{'Content-Type: application/json'}} {{http://example.com/users/1234}}`
- 使用用户名和密码,授权访问服务器
`curl --user {{用户名}} {{http://example.com}}`
- 为指定资源使用客户端证书和密钥,并且跳过证书验证:
- 为资源传递客户端证书和密钥,跳过证书验证
`curl --cert {{client.pem}} --key {{key.pem}} --insecure {{https://example.com}}`
- 将主机名解析为自定义 IP 地址,并输出详细信息(类似于编辑 `/etc/hosts` 文件以实现自定义 DNS 解析):
`curl --verbose --resolve {{example.com}}:{{80}}:{{127.0.0.1}} {{http://example.com}}`