In the public wifi network, I can't download files with http links but I can use https links. How can I download a file served with http? A solution I have proposed is to convert the link from http to https but I have no idea how it's done.
It sounds like you are trying to get around a transparent proxy that is blocking things on normal unencrypted HTTP but not doing anything with HTTPS.
There is no simple way to "redirect" HTTP links to HTTPS purely from the client end. The server in question must support sending the content through HTTPS on their end, and from the client end you can't do anything or make the server do what it isn't configured to do.
Some sites redirect users that go to an
So you will need a proxy or similar outside of the network to accomplish what you are trying.