docs: Updated cn trans for esp_http_client and external_ram

This commit is contained in:
mofeifei
2024-01-02 15:58:47 +08:00
parent 18f7ce2bd6
commit 009e6945aa
4 changed files with 12 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ ESP HTTP client supports both **Basic** and **Digest** Authentication.
* Users can provide the username and password in the ``url`` or the ``username`` and ``password`` members of the ``esp_http_client_config_t`` configuration. For ``auth_type = HTTP_AUTH_TYPE_BASIC``, the HTTP client takes only one perform operation to pass the authentication process.
* If ``auth_type = HTTP_AUTH_TYPE_NONE``, but the ``username`` and ``password`` fields are present in the configuration, the HTTP client takes two perform operations. The client will receive the ``401 Unauthorized`` header in its first attempt to connect to the server. Based on this information, it decides which authentication method to choose and performs it in the second operation.
* Check out the example functions ``http_auth_basic``, ``http_auth_basic_redirect`` (for Basic authentication) and ``http_auth_digest`` (for Digest authentication) in the application example for implementation details.
* Currently, only MD5 and SHA-256 algorithms are supported with Digest authentication.
* Currently, Digest authentication supports only MD5 and SHA-256 algorithms.
Examples of Authentication Configuration