mIRC Homepage
Posted By: SteeleR sockets promlem - 04/12/04 12:17 PM
i'm very new in using sockets and i have a problem.
Here's the script :
on *:SOCKOPEN:http: {
echo -s *** $sockname was just opened, Retrieving file sock.nfo
sockwrite -n $sockname GET /ASP?MATCHID=25441112 HTTP/1.0
sockwrite $sockname $str($crlf,2)
}

on *:SOCKCLOSE:http: {
echo -s *** $sockname just closed
}

on *:SOCKREAD:http: {
if ($sockerr > 0) return
:nextread
sockread %temp
if ($sockbr == 0) return
if (%temp) { echo %temp }
goto nextread
}


after i start it , i get :
<p>The requested URL /ASP was not found on this server.</p>
so basicly it cut the part after the '?' sign in 'sockwrite -n $sockname GET /ASP?MATCHID=25441112 HTTP/1.0'
Why does it do that and how to correct it ?

10x to all
Posted By: Artwerks Re: sockets promlem - 04/12/04 07:42 PM
We can't test, you didn't give us the website you're connecting to. Also, you should read a tutorial on sockets, as it's really... messed up in your code, and you don't need your loop.
Posted By: katz1988 Re: sockets promlem - 06/12/04 10:33 PM
Hey that kind of tutorials would be neat. the help file realy doesn't give much information about how to use the sockets.
Got any links. Or do I have to spent an afternoon searching for them.
© mIRC Discussion Forums