Hi, this can work with GitHub too? In GitHub downloads don't have the redirect problem, but the code you use to download must have a proper User-Agent like
client.AddHeader('User-Agent','Mozilla/5.0 (compatible; fpweb)');
and it must support https downloads, so maybe need to include the extra dll's (OpenSSL ssleay32.dll and libeay32.dll), depending on what you're using for the download.
The downloads are stored like this:
https://github.com/newpascal/lazarus/releases/download/lazarus4np-v1.0.37/lazarus.zipso github prefix, organization or username, project, releases, download, tag, filename
in each release the thing that changes is the tag, and maybe the filename,
of course you can delete the previous file and replace with another with the same name, so the url will not change
but if for example is needed to store text in a url that donesn't change maybe can be used the master repository
for example, in bgracontrols I have the external json like this
https://raw.githubusercontent.com/bgrabitmap/bgracontrols/master/update_bgracontrols_force.jsonso any file can be downloaded as text with no problems, for the version.ini that's online