Description
I'd like to use the library to download compiled .ota
files from my latest GitHub release assets. In my example, I can access the latest .ota
file using the following URL: https://github.com/sensebox/senseBox-bike-Arduino/releases/latest/download/senseBox-bike-atrai.ino.ota
This URL however redirects two times to the actual download link:
- --> https://github.com/sensebox/senseBox-bike-Arduino/releases/download/v0.1.7/senseBox-bike-atrai.ino.ota
- --> https://objects.githubusercontent.com/github-production-release-asset-2e65be/422515945/c7f9fc4e-783c-41a1-b811-e47ba1fa0f84?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240603%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240603T092537Z&X-Amz-Expires=300&X-Amz-Signature=76a08d0acee0bc9f1882983bbb1f47a143bb4e01e27e0d4069fdf852b3e2fb91&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=422515945&response-content-disposition=attachment%3B%20filename%3DsenseBox-bike-atrai.ino.ota&response-content-type=application%2Foctet-stream
In my fork, I created a logic to follow redirects (main...felixerdy:Arduino_ESP32_OTA:main) which itself works as intended. However, the https://objects.githubusercontent.com/... URL can't be consumed by the Library as it returns a 400 error. Using the same link in my browser however downloads the intended file.
Please note that I already added the needed certificates
Do you have an idea how to resolve the 400 error?
P.S.: I'd be happy to create a PR for the follow redirect code if you want me to