esp_https_ota_begin() return ESP_FAIL if HTTP304 on first HEAD trans
Posted: Tue May 05, 2026 11:49 am
Hello,
I'm using an esp32 device (esp-idf v6.0.1) and i want to perform OTA, using esp_https_ota component. i have partial_download enabled.
Here is my problem:
When i call
What i do not understand is that the function is coded to handle HTTP304 (ESP_ERR_HTTP_NOT_MODIFIED) response on the GET once the HEAD had an HTTP200 response, but why can't the HEAD handle HTTP304 itself, to avoid useless transmission ?
I don't think systematically sending at least 2 transmissions in this context is needed, but i might be missing something.
If anyone have an answer to this, I would appreciate it.
Thank you
I'm using an esp32 device (esp-idf v6.0.1) and i want to perform OTA, using esp_https_ota component. i have partial_download enabled.
Here is my problem:
When i call
the server is configured to respond with HTTP304 code if there is nothing to send. I received an error on this, and my device send 2 transmission (1 HEAD and 1 GET).esp_https_ota_begin()
What i do not understand is that the function is coded to handle HTTP304 (ESP_ERR_HTTP_NOT_MODIFIED) response on the GET once the HEAD had an HTTP200 response, but why can't the HEAD handle HTTP304 itself, to avoid useless transmission ?
I don't think systematically sending at least 2 transmissions in this context is needed, but i might be missing something.
If anyone have an answer to this, I would appreciate it.
Thank you