Chapter 2. API Reference
struct esp_http_client_config_t
HTTP configuration.
Public Members
const char *url
HTTP URL, the information on the URL is most important, it overrides the other fields below, if any
const char *host
Domain or IP as string
int port
Port to connect, default depend on esp_http_client_transport_t (80 or 443)
const char *username
Using for Http authentication
const char *password
Using for Http authentication
esp_http_client_auth_type_t
Http authentication type, see esp_http_client_auth_type_t
const char *path
HTTP Path, if not set, default is /
const char *query
HTTP query
const char *cert_pem
SSL server certification, PEM format as string, if the client requires to verify server
size_t cert_len
Length of the buffer pointed to by cert_pem. May be 0 for null-terminated pem
const char *client_cert_pem
SSL client certification, PEM format as string, if the server requires to verify client
size_t client_cert_len
Length of the buffer pointed to by client_cert_pem. May be 0 for null-terminated pem
const char *client_key_pem
SSL client key, PEM format as string, if the server requires to verify client
size_t client_key_len
Length of the buffer pointed to by client_key_pem. May be 0 for null-terminated pem
const char *client_key_password
Client key decryption password string
size_t client_key_password_len
String length of the password pointed to by client_key_password
const char *user_agent
The User Agent string to send with HTTP requests
esp_http_client_method_t
HTTP Method
int timeout_ms
Network timeout in milliseconds
bool disable_auto_redirect
Disable HTTP automatic redirects
int max_redirection_count
Max number of redirections on receiving HTTP redirect status code, using default value if zero
Espressif Systems
auth_type
method
567
Submit Document Feedback
Release v4.4
Need help?
Do you have a question about the ESP32-S2 and is the answer not in the manual?