From a45aa7d112f3ac7752e8d2d156e656ed8c186b77 Mon Sep 17 00:00:00 2001 From: KsRyY Date: Fri, 16 Aug 2019 10:29:26 +0800 Subject: [PATCH] curl: do more translation --- pages.zh/common/curl.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages.zh/common/curl.md b/pages.zh/common/curl.md index b985d3775d..f2b75cf127 100644 --- a/pages.zh/common/curl.md +++ b/pages.zh/common/curl.md @@ -20,15 +20,15 @@ `curl -d {{'name=bob'}} {{http://example.com/form}}` -- Send a request with an extra header, using a custom HTTP method: +- 发送带有额外请求头, 使用自定义请求方法的请求: `curl -H {{'X-My-Header: 123'}} -X {{PUT}} {{http://example.com}}` -- Send data in JSON format, specifying the appropriate content-type header: +- 发送 JSON 格式的数据, 并附加正确的 `Content-Type` 请求头: `curl -d {{'{"name":"bob"}'}} -H {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` -- Pass a user name and password for server authentication: +- 为服务器授权传入用户名和密码: `curl -u myusername:mypassword {{http://example.com}}`