arthur-zhang commented on a change in pull request #5038: URL: https://github.com/apache/apisix/pull/5038#discussion_r706521252
########## File path: docs/zh/latest/plugins/hmac-auth.md ########## @@ -272,6 +284,29 @@ Accept-Ranges: bytes <html lang="cn"> ``` +### 开启 body 校验 + +```shell +$ curl -X "POST" "http://localhost:9080/index.html?age=36&name=james" \ + -H 'X-HMAC-ACCESS-KEY: zyedu-hmac-01' \ + -H 'X-HMAC-SIGNATURE: ivlwjZPoVdSVvdSSM4drEFk9q9HS2jeJ5cAN9JffmdA=' \ + -H 'X-HMAC-ALGORITHM: hmac-sha256' \ + -H 'Date: Tue, 24 Aug 2021 03:19:21 GMT' \ + -H 'X-HMAC-SIGNED-HEADERS: User-Agent;Digest' \ + -H 'User-Agent: curl/7.29.0' \ + -H 'Digest: L9b/+QMvhvnoUlSw5vq+kHPqnZiHGl61T8oavMVTaC4=' \ + -H 'Content-Type: text/plain; charset=utf-8' \ + -d "{\"hello\":\"world\"}" + +HTTP/1.1 200 OK +Content-Type: text/html; charset=utf-8 +Transfer-Encoding: chunked +Connection: keep-alive +Date: Tue, 19 Jan 2021 11:33:20 GMT +Server: APISIX/2.2 +...... +``` Review comment: I will -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
