How to download files via GDScript?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Spyrex

There was already a tutorial about that
but it is 6 years old and not applicable anymore:
https://forum.godotengine.org/9902/how-to-download-a-file-from-the-internet-using-gdscript

:bust_in_silhouette: Reply From: Spyrex

You have to set the download_file - String before requesting a file.