mIRC Home    About    Download    Register    News    Help

Print Thread
sockets promlem #104509 04/12/04 12:17 PM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
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


HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
Re: sockets promlem #104510 04/12/04 07:42 PM
Joined: May 2003
Posts: 79
A
Artwerks Offline
Babel fish
Offline
Babel fish
A
Joined: May 2003
Posts: 79
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.

Re: sockets promlem #104511 06/12/04 10:33 PM
Joined: Nov 2004
Posts: 9
K
katz1988 Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
K
Joined: Nov 2004
Posts: 9
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.