Hey,
I'm trying to get data from a web page, but I keep getting an error returned from the web page (note that mirc is not giving me the error). I'm pretty sure this is fairly simply to do, but my knowledge of sockets is very limited. Anyone help me with this, please?
alias mtgsal {
sockopen MtgSalvation forums.mtgsalvation.com 80
}
on 1:sockopen:MtgSalvation: {
sockwrite -nt $sockname Get /forumdisplay.php?f=27 HTTP/1.1
sockwrite -nt $sockname Host: forums.mtgsalvation.com
sockwrite -nt $sockname $crlf
}
on *:sockread:MtgSalvation: {
sockread %MtgS.temp
/echo -a %MtgS.temp
}
And this is what I get returned from the page...
HTTP/1.0 501 Not Implemented
Connection: close
Content-Type: text/html
Content-Length: 357
Date: Sat, 08 Sep 2007 10:22:50 GMT
Server: lighttpd/1.4.15
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>501 - Not Implemented</title>
</head>
<body>
<h1>501 - Not Implemented</h1>
</body>
</html>
Nothing I do seems to work. I'm trying to get data from
http://forums.mtgsalvation.com/showthread.php?t=85382#1868Thanks