HTTP Update and x-MD5 header

jevgienij
Posts: 3
Joined: Sun Oct 23, 2022 9:40 am

HTTP Update and x-MD5 header

Postby jevgienij » Sun Jan 15, 2023 10:38 am

https://github.com/espressif/arduino-es ... HTTPUpdate

I found out that this library can read x-MD5 header but looks like it's going through with the update no matter what MD5 I set. I thought it's for verifying the update, I do md5sum of my bin file on the server and then ESP32 checks the hash of downloaded bin to confirm the file wasn't corrupted during download. Am I wrong here? What's the purpose of this x-MD5 header if not for this?

If it has another purpose, how do I make sure that the bin with the update wasn't corrupted during download so I don't brick ESP32?

Who is online

Users browsing this forum: No registered users and 24 guests