esp_http_client example: Add cert for redirect to HTTPS example

esp_http_client_test.py: Add checks for missing example logs
This commit is contained in:
Shubham Kulkarni
2022-04-22 17:38:10 +05:30
parent 5f8ead1bb6
commit 7059ea0895
2 changed files with 27 additions and 0 deletions

View File

@@ -481,6 +481,7 @@ static void http_redirect_to_https(void)
esp_http_client_config_t config = {
.url = "http://httpbin.org/redirect-to?url=https%3A%2F%2Fwww.howsmyssl.com",
.event_handler = _http_event_handler,
.cert_pem = howsmyssl_com_root_cert_pem_start,
};
esp_http_client_handle_t client = esp_http_client_init(&config);
esp_err_t err = esp_http_client_perform(client);