socket experts needed! - 20/03/07 03:02 PM
basically im trying to read data from e.g:
http://www.buzzen.com/chat/friend.php?nick=dave
so i do: /findu dave
im trying to grab the table from the page to show all the users and their rooms. at the moment im checking if it finds *valign* but it just echos line to long.
can someone help me parse the socket data and echo the names/rooms?
http://www.buzzen.com/chat/friend.php?nick=dave
so i do: /findu dave
Code:
alias findu { if ($sock(findu)) sockclose findu sockopen findu www.buzzen.com 80 sockmark findu $$1 } on *:SOCKOPEN:findu: { var %nick = $sock($sockname).mark sockwrite -n $sockname GET /chat/friend.php?nick= $+ %nick HTTP/1.1 $+ $crlf $+ Host: www.buzzen.com $+ $crlf $+ Cookie: lang=EN $+ $str($crlf, 2) } on *:SOCKREAD:findu: { var %read sockread %read if (*valign=up* iswm %read) echo -a %read }
im trying to grab the table from the page to show all the users and their rooms. at the moment im checking if it finds *valign* but it just echos line to long.
can someone help me parse the socket data and echo the names/rooms?