mIRC Homepage
Posted By: bloodfog Socket help - 01/05/05 06:47 PM
Hello,
I'm working on sockets but I had one problem when I'm trying to get the data inside the tables.

I'm trying to get the table @ www.whois.sc/someip
For example

Hope you got me.
Here is what i got, I just wanted to work on it, but I couldnt somehow take the datas in the yellow table.

Code:
on *:sockopen:whoissc:{ 
  sockwrite -n $sockname GET $+(/,www.mirc.com) HTTP/1.1 
  sockwrite -n $sockname Host: whois.sc $+ $crlf $+ $crlf
}
on *:sockread:whoissc:{
  if ($sockerr) {
    echo -a Error.
    halt
  }
  else {
    var %temptext
    sockread %temptext
    $iif(%temptext,echo -a %temptext)
  }
}
 
Posted By: DaveC Re: Socket help - 01/05/05 08:24 PM
Worked fine for me, I like how the site sends back [email]name@address[/email] as a image so a bot cant scrape them. smile
© mIRC Discussion Forums