PHP is probably the simplest way to do it, for sure. You have to know a bit the language, but a simple $text=file("http://foobar.com/thing.txt") can do the job for example.
In facts, you can even use a RayPHP function available in "libfile.php" (you'll have to require it from your script) named http_download(), with proxy support (using Raydium settings). This function takes an URL as parameter and returns a string.
For passing variables to the PHP script (URL ?) and back to the application, you can have a look to ManiaDrive, it use a few PHP scripts.
As a quick test, or for very simple uses, you will also find a function in the Raydium API ("signed char raydium_web_client_get(char *filename)"), in web.c. This is a very minimalist HTTP (1.0) client that will download the file. This client was coded to run only with Raydium internal HTTP server, so there no vhost support, no proxy, no headers, ... It's probably a bad idea to use this to fetch a file from a regular webserver, IMHO.
I may post here a small PHP example if you want.
|