How do I download files from a dedicated server?

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

Hi,
I’ve been trying to reduce the size of my future exported game, the way I want to achieve this is by downloading the images and other less “core” files from a server.
I can host a server with an extra computer that I have, so there, all the files will be hosted.

What I need is a way to download those files, is it by html request? If so, could I have an example of a random image http request? Or the syntax of request() itself.

Also, on Enet connections how do I send more than one variable at the same time? I made a little chat, but because I don’t know how to do what I just mentioned I had to send a single string as ascii with: timestamp + username + msg.

:bust_in_silhouette: Reply From: jtarallo

Documentation:

Simple example:
https://forum.godotengine.org/10903/get-image-file-from-the-server-like-game-maker-http_get_file

Hope it helps.