mmm, i had fixed that b4 and it just returned,
HTTP/1.1 200 OK
Date: Sun, 26 Dec 2004 23:29:59 GMT
Server: Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2
X-Powered-By: PHP/5.0.2
Content-Length: 61
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=ISO-8859-1
-
* /echo: insufficient parameters (line 37, script3.mrc)
-
Before, i had it listing the HTML code of the index.php file of the host instead of the new fileserver.html document... I've updated it and i currently have...
;FileServ Updater
alias update {
if ($sock(download).name != download) {
sockopen download 203.219.139.50 80
echo -a 10The socket:7 download10 :is now connected.
set %extention .txt
}
else {
sockclose download
echo -a 10Closed socket:7 download
}
}
alias download {
if (!$1) {
if (!$sock(download)) { sockopen download 203.219.139.50 80 }
echo -a Updating
}
}
on *:SOCKOPEN:download:{
if ($sockerr > 0) {
sockclose $sockname
echo -a Update Error
if ($sockerr == 3) {
if (!$sock($sockname)) { sockopen download depodra.afraid.org 80 }
}
}
else {
sockwrite -n $sockname GET /updates/fileserver.php HTTP/1.1
sockwrite -n $sockname Host: 203.219.139.50
sockwrite -n $sockname Connection: keep-alive
sockwrite $sockname $crlf
}
}
on *:SOCKREAD:download:{
sockread %ver
tokenize 32 %ver
echo -a %ver
if (Version: isin %ver) {
if ($2 > %fservver) {
window @Download
aline @Download 10 Current Version: %fservver
aline @Download 10 Downloadable Version: $2
aline @Download 10 Downloading New Version...
sockclose $sockname
}
elseif ($2 == %fservver) {
echo -a No new download is available...
echo -a Closing Socket
sockclose $sockname
}
}
else {
unset %ver
}
}
but it still lists:
The socket: download :is now connected
HTTP/1.1 200 OK
Date: Sun, 26 Dec 2004 23:29:59 GMT
Server: Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2
X-Powered-By: PHP/5.0.2
Content-Length: 61
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=ISO-8859-1
by the way, the host is correct (203.219.139.50)