Hi i use a socket to check for updates on my website, but when I notice when i use /echo -a %temp (after sockread %temp of course), it always show an error for the last line and not show it...
Whats the problem with it?
Try using sockread -f Temp
it will still not show anything although the error is gone. whats wrong
Perhaps it's an empty line (containing only CRLF) Are you positive the last line should contain data?
well it has a fullstop on the last line.
and on all other pages i tried it doesn't work too (which has </html> on the last line)
Is your site retuning a CRLF after the line in question?
mIRC splits texts using this as the toekn delimeter, without it, it doesn't know the line is complete.
Interesting. If you haven't yet found a solution, please post your code here in addition to the website address, so we can reproduce the bug and see what's wrong.
on *:sockopen:mirc:{
sockwrite -n $sockname GET /scriptupdate/versions.txt HTTP/1.1
sockwrite -n $sockname Host: trenzterraz.sourceforge.net $+ $str($crlf ,2)
sockwrite -n $sockname Connection: Keep-Alive
}
on *:sockread:mirc:{
sockread -f %temp
echo -a %temp
}
Put an empty line after the line with the "." on its own.
e.g.
.
text text text
text text text
.
<empty line>
that solves it, but not all html pages on the internet will change that just for one application called mIRC.
it would be better if mIRC 'fixed' that?