I already know how to query Source servers (Gmod, HL2, DOTA2, CSS, etc.) to see if they are online, have players, get ping times, etc, using PHP, Perl, etc.
What I am trying to figure out is how would I download a map from the server using PHP (or any other language). I have tried to find any documentation on this and I am not having any luck. If I know the IP and PORT of a GMOD server, for example, there must be a way to ask the server for the the map. I would already know the map name (since a query returns the map name).
To explain a little more... When you connect to a server to play on it, the server sends the maps, materials, sounds, etc., to your PC. These files can come from the game server directory, or they can come from a webserver that the game server uses. This is known as FastDL.
I really would like to be able to ask the game server for a map and then download it. If that is not possible, is there a way to ask the game server what web server it uses for FastDL? If so, I could download the map from that web server.
Any help would be appreciated.