Someone know how i use sockets to read a flash file?
i want to get the chat from here ->
http://st.chatango.com/flash/group.swf?gn=naruto-tv.st.chatango.com but the socket read a amount of codes... like this:
[23:07:51] <chorao> £|d‘CsB‘¤‚`hEO|8P¡bvhfp9àä…ާ§1n¼Pæk06S£T\ö^WöV¡/œ»¿ÂûÂ×r$‡=¥¥äu >¡dÎÒ7YšÚFfŠ©ÂØô,>°Vã¹<±S/ü1뵙Çt‡Ôx¤á4+†Æ5߸yü6Ññûdèø5ÖÙi'rÖ(!}ËX÷N¤´0
i know thats is possible to get the messages with socket but i dont know how get from a flash file.
alias ch {
sockclose ch
set %chLines 0
sockopen ch st.chatango.com 80
}
on *:sockopen:ch:{
if ($sockerr) { echo unable to connect | halt }
else {
sockwrite -n $sockname GET /flash/group.swf?gn=naruto-tv.st.chatango.com HTTP/1.1
sockwrite -n $sockname Host: st.chatango.com
sockwrite -n $sockname Connection: keep-alive
sockwrite -n $sockname Content-type: application/x-shockwave-flash
sockwrite -n $sockname $crlf
}
}
on *:sockread:ch:{
var %ch
inc %chLINES
sockread %ch
echo [[ %chLINES ]] %ch
}
I hope someone can help me!
Thanks!