format zh translations
This commit is contained in:
committed by
Starbeamrainbowlabs
parent
e90e6bdf6b
commit
7f995941ed
@@ -1,37 +1,37 @@
|
||||
# curl
|
||||
|
||||
> 向/从一个服务器传输数据.
|
||||
> 支持大多数协议, 包括 HTTP, FTP, 和 POP3.
|
||||
> 更多信息: <https://curl.haxx.se>.
|
||||
> 向 / 从一个服务器传输数据。
|
||||
> 支持大多数协议,包括 HTTP, FTP, 和 POP3.
|
||||
> 更多信息:<https://curl.haxx.se>.
|
||||
|
||||
- 将指定URL的内容下载到文件:
|
||||
- 将指定 URL 的内容下载到文件:
|
||||
|
||||
`curl {{http://example.com}} -o {{文件名}}`
|
||||
|
||||
- 将文件从URL保存到由URL指示的文件名中:
|
||||
- 将文件从 URL 保存到由 URL 指示的文件名中:
|
||||
|
||||
`curl -O {{http://example.com/文件名}}`
|
||||
`curl -O {{http://example.com/ 文件名}}`
|
||||
|
||||
- 下载文件, 跟随 [L]重定向, 并且自动 [C]续传(恢复)前序文件传输:
|
||||
- 下载文件,跟随 [L] 重定向,并且自动 [C] 续传(恢复)前序文件传输:
|
||||
|
||||
`curl -O -L -C - {{http://example.com/文件名}}`
|
||||
`curl -O -L -C - {{http://example.com/ 文件名}}`
|
||||
|
||||
- Send form-encoded data (POST request of type `application/x-www-form-urlencoded`):
|
||||
|
||||
`curl -d {{'name=bob'}} {{http://example.com/form}}`
|
||||
|
||||
- 发送带有额外请求头, 使用自定义请求方法的请求:
|
||||
- 发送带有额外请求头,使用自定义请求方法的请求:
|
||||
|
||||
`curl -H {{'X-My-Header: 123'}} -X {{PUT}} {{http://example.com}}`
|
||||
|
||||
- 发送 JSON 格式的数据, 并附加正确的 `Content-Type` 请求头:
|
||||
- 发送 JSON 格式的数据,并附加正确的 `Content-Type` 请求头:
|
||||
|
||||
`curl -d {{'{"name":"bob"}'}} -H {{'Content-Type: application/json'}} {{http://example.com/users/1234}}`
|
||||
|
||||
- 使用用户名和密码,授权访问服务器:
|
||||
- 使用用户名和密码,授权访问服务器:
|
||||
|
||||
`curl -u myusername:mypassword {{http://example.com}}`
|
||||
|
||||
- 为指定资源使用客户端证书和密钥,并且跳过证书验证:
|
||||
- 为指定资源使用客户端证书和密钥,并且跳过证书验证:
|
||||
|
||||
`curl --cert {{client.pem}} --key {{key.pem}} --insecure {{https://example.com}}`
|
||||
|
||||
Reference in New Issue
Block a user