EasyManuals Logo

Espressif ESP32-S2 User Manual

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #573 background imageLoading...
Page #573 background image
Chapter 2. API Reference
ESP_OK
ESP_FAIL
Parameters
[in] client: The esp_http_client handle
[in] key: The header key
[in] value: The header value
esp_err_t esp_http_client_get_header(esp_http_client_handle_t client, const char *key, char
**value)
Get http request header. The value parameter will be set to NULL if there is no header which is same as the
key specified, otherwise the address of header value will be assigned to value parameter. This function must
be called after esp_http_client_init.
Return
ESP_OK
ESP_FAIL
Parameters
[in] client: The esp_http_client handle
[in] key: The header key
[out] value: The header value
esp_err_t esp_http_client_get_username(esp_http_client_handle_t client, char **value)
Get http request username. The address of username buffer will be assigned to value parameter. This function
must be called after esp_http_client_init.
Return
ESP_OK
ESP_ERR_INVALID_ARG
Parameters
[in] client: The esp_http_client handle
[out] value: The username value
esp_err_t esp_http_client_set_username(esp_http_client_handle_t client, const char
*username)
Set http request username. The value of username parameter will be assigned to username buffer. If the
username parameter is NULL then username buffer will be freed.
Return
ESP_OK
ESP_ERR_INVALID_ARG
Parameters
[in] client: The esp_http_client handle
[in] username: The username value
esp_err_t esp_http_client_get_password(esp_http_client_handle_t client, char **value)
Get http request password. The address of password buffer will be assigned to value parameter. This function
must be called after esp_http_client_init.
Return
ESP_OK
ESP_ERR_INVALID_ARG
Parameters
[in] client: The esp_http_client handle
[out] value: The password value
esp_err_t esp_http_client_set_password(esp_http_client_handle_t client, const char
*password)
Set http request password. The value of password parameter will be assigned to password buffer. If the
password parameter is NULL then password buffer will be freed.
Return
ESP_OK
ESP_ERR_INVALID_ARG
Parameters
Espressif Systems 562
Submit Document Feedback
Release v4.4

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Espressif ESP32-S2 and is the answer not in the manual?

Espressif ESP32-S2 Specifications

General IconGeneral
BrandEspressif
ModelESP32-S2
CategorySingle board computers
LanguageEnglish