I would like to have a web server where I can download files, whose size is determined by their filename. Something like:
Browse to http://mydomain.com/100MB -> receive any 100MB file Browse to http://mydomain.com/200MB -> receive any 200MB file Browse to http://mydomain.com/254MB -> receive any 254MB file Browse to http://mydomain.com/10kb -> receive any 10kb file Browse to http://mydomain.com/1GB -> receive any 1GB file Browse to http://mydomain.com/3GB -> receive any 3GB file
The exact way to specify file size in the URL is not important, and neither is the data content of the file received (random data, all zero's, doesn't matter), as long as it is has the right size.
I have an apache server installed, but obviously generating every file is not possible (I'd run out of disk space fast).
Is there a way to achieve this behavior? Using an apache module or perhaps PHP, or another way?