From 2d437a6d9a1e2c6ed756965166ed63604a73b9de Mon Sep 17 00:00:00 2001 From: "nilesh.kale" Date: Wed, 27 Aug 2025 13:17:08 +0530 Subject: [PATCH] fix(esp_http_client): fixed documentation for API esp_http_client_set_post_data() Closes https://github.com/espressif/esp-idf/issues/17053 --- components/esp_http_client/include/esp_http_client.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/esp_http_client/include/esp_http_client.h b/components/esp_http_client/include/esp_http_client.h index 8501be427a..2c0c62aa6b 100644 --- a/components/esp_http_client/include/esp_http_client.h +++ b/components/esp_http_client/include/esp_http_client.h @@ -369,7 +369,8 @@ esp_err_t esp_http_client_set_url(esp_http_client_handle_t client, const char *u /** * @brief Set post data, this function must be called before `esp_http_client_perform`. - * Note: The data parameter passed to this function is a pointer and this function will not copy the data + * Note: Post data persists between requests and must be cleared manually. + * To avoid post data carryover, set the post data to NULL before starting any subsequent requests. * * @param[in] client The esp_http_client handle * @param[in] data post data pointer