Sockets and cookies - 19/08/05 07:21 PM
I'm trying to get an mIRC bot to log into a forum, but so far haven't succeeded.
What I have so far:
I somehow need to send it the cookies, so it will recognize me as logged in.
I've tried things like: sockwrire -n $sokname Cookie: etc, but it didn't work.
What I have so far:
Code:
alias forum { sockopen forum forum.com 80 } on *:sockopen:forum:{ write -c forum.html sockwrite -n $sockname GET / HTTP/1.1 sockwrite -n $sockname Host: $+(forum.com,$crlf, $crlf) } on *:sockread:forum:{ if ($sockerr) { echo -a Error. halt } else { var %temptext sockread %temptext write forum.html %temptext } }
I somehow need to send it the cookies, so it will recognize me as logged in.
I've tried things like: sockwrire -n $sokname Cookie: etc, but it didn't work.