Confused (Sock Problem) - 14/01/07 09:02 PM
Ok this is what I have.
And when triggered I get
-------------------------------------------------------
Getting Update Information, Please Wait.
-------------------------------------------------------
Update Information:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /humveeupdate.txt was not found on this server.</p>
<hr>
<address>Apache/2.0.54 (Fedora) Server at default Port 80</address>
</body></html>
However the file.
www.maxoctane.net/humveeupdate.txt does exist and i can go to it w/ my browser.
am I doing something wrong? Any help is greatly appreciated.
Code:
alias hread { sockopen hread www.maxoctane.net 80 } on *:sockopen:hread:{ sockwrite -nt hread GET /humveeupdate.txt sockwrite -t hread $crlf } on *:sockread:hread:{ if ($sockerr) return sockread 942 &temp echo -s ------------------------------------------------------- echo -s Getting Update Information, Please Wait. echo -s ------------------------------------------------------- echo -s Update Information: echo -s $bvar(&temp,1-).text }
And when triggered I get
-------------------------------------------------------
Getting Update Information, Please Wait.
-------------------------------------------------------
Update Information:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /humveeupdate.txt was not found on this server.</p>
<hr>
<address>Apache/2.0.54 (Fedora) Server at default Port 80</address>
</body></html>
However the file.
www.maxoctane.net/humveeupdate.txt does exist and i can go to it w/ my browser.
am I doing something wrong? Any help is greatly appreciated.