This was just thrown together, should work fine.
alias dlfile {
sockclose dlfile
unset %dl.go
sockopen dlfile [color:red]www.site.com 80
}
On *:Sockopen:dlfile:{
sockwrite -n $sockname GET
/dir/to/file.txt HTTP/1.1
sockwrite -n $sockname Host:
www.site.com sockwrite -n $sockname
}
On *:Sockread:dlfile:{
sockread %dlfile
if ((!%dlfile) && (!%dl.go)) { set %dl.go 1 }
elseif (%dl.go) { echo -s Got: %dlfile }
}
[/color]
Edit the red to the according,
www.site.com becomes your website address, without http:// and any directory information,
/dir/to/file.txt, becomes the EXACT directory to the file including .extention.
Also note this will NOT work for Binary files.
Syntax; /dlfile
Eamonn.