mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2006
Posts: 183
T
Thrull Offline OP
Vogon poet
OP Offline
Vogon poet
T
Joined: Aug 2006
Posts: 183
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?

Code:
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...

Quote:
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#1868

Thanks smile

Last edited by Thrull; 08/09/07 10:25 AM.

Yar
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Try HTTP/1.0

-genius_at_work

Joined: Aug 2006
Posts: 183
T
Thrull Offline OP
Vogon poet
OP Offline
Vogon poet
T
Joined: Aug 2006
Posts: 183
I did, but got the same results. Upon doing some searching I found an alias called $Download on another website, and man does this thing rock!

http://www.mirc.net/projects.php?go=1136262225

I think I can reverse engineer it so I can see what I need to do.


Yar

Link Copied to Clipboard