sockread, getting headers only - 18/03/09 11:47 PM
i cannot get mirc to receive the content of this page, i only get the header. what am i doing wrong?
Code:
on 1:sockopen:IOS:{ sockwrite -n $sockname GET /IOS/ $+ %IOS.request HTTP/1.0 sockwrite -n $sockname User-Agent: IOS 1.0/mIRC $version sockwrite -n $sockname Host: www.host.com $+ $crlf $+ $crlf } on 1:sockread:IOS:{ if ($sockerr) { echo -a IOS Socket Error. | halt } else { sockread %temp echo -a : %temp } unset %IOS.request }