I've added cURL
http://curl.haxx.se/ support into my backport builds:
http://trem.tjw.org/backport/If you're using Linux you will need to have libcurl installed (I think most distros install it by default though). The windows build is statically linked to libcurl, and Mac OS X comes with libcurl installed already.
In order for it to work, you need to enable downloads by setting the cl_allowDownload cvar to 1. cURL downloading is enabled by default, but you can disable it by setting cl_wwwDownload to 0.
Server setup instructions:
1) You need to use the latest tremded from
http://tjw.org/tremulous/2) Enable server downloads in your server config:
set sv_allowDownload 1
3) Enable download redirection:
set sv_wwwDownload 1
4) Set the base URL for your downloads:
set sv_wwwBaseURL "http://your.server.com"
Obviously, you'll want to change the value in step 4. Note that this URL is just the start of the url. If you have fs_game set to "base" (the default), then the clients will attempt to download:
http://your.server.com/base/themissing.pk3My server (tremulous.tjw.org) has this enabled already, so you can test the client there when one of the custom maps is running.