I would like to automate the downloading of a nightly build from a git repository using the curl command.
For example, in yazi I have to click on Assets->yazi-x86_64-unknown-linux-gnu.zip. However this link will point to another link that has a more elaborate path definition and that will expire after some duration, such as
https://release-assets.githubusercontent.com/github-production-release-asset/663900193/631dccdb-8b43-4d4e-9667-4805b959cfe6?sp=r&sv=2018-11-09&sr=b&spr=https&se=2025-10-20T16%3A53%3A51Z&rscd=attachment%3B+filename%3Dyazi-x86_64-unknown-linux-gnu.zip&rsct=application%2Foctet-stream&skoid=96c2d410-5711-43a1-aedd-ab1947aa7ab0&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skt=2025-10-20T15%3A53%3A35Z&ske=2025-10-20T16%3A53%3A51Z&sks=b&skv=2018-11-09&sig=qTyA03vVDaWnTig7k7JBo0qkgFudJEcHQFzYe8lhJdQ%3D&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmVsZWFzZS1hc3NldHMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwia2V5Ijoia2V5MSIsImV4cCI6MTc2MDk3NTkxNiwibmJmIjoxNzYwOTc1NjE2LCJwYXRoIjoicmVsZWFzZWFzc2V0cHJvZHVjdGlvbi5ibG9iLmNvcmUud2luZG93cy5uZXQifQ.0SUkphRea1z-qNxhjfxzZdJ3zBjEVjkIBbSw8lOBlmI&response-content-disposition=attachment%3B%20filename%3Dyazi-x86_64-unknown-linux-gnu.zip&response-content-type=application%2Foctet-streamSo
$ curl -Lo https://github.com/sxyazi/yazi/releases/download/nightly/yazi-x86_64-unknown-linux-gnu.zip ./ % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: .How should I download such a file?
$ sudo curl -Lo yazi-x86_64-unknown-linux-gnu.zip https://github.com/sxyazi/yazi/releases/download/nightly/yazi-x86_64-unknown-linux-gnu.zip /opt % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0100 9724k 100 9724k 0 0 7730k 0 0:00:01 0:00:01 --:--:-- 8950kcurl: (3) URL rejected: No host part in the URLWhy is it showing curl: (3) URL rejected: No host part in the URL?