HTTP1.1 sends the data as "chunks" that are then suppose to be reassembled by the web browser (or something like that). HTTP1.0 sends the data divided by the 0x0A and/or 0x0D (cr/lf) characters. (From memory, don't quote me on that..)

I never use the $sockbr loop method in my socket scripts, so I don't know if that is affecting your output or not. I always do something like this:

Code:

on *:SOCKREAD:mysock:{
if ($sockerr) return
var %s
sockread %s
echo -a > %s
}



mIRC automatically triggers the sockread event again if more data is in the buffer. If you need to handle all of the data on that line at once, you can write it to a tmp file and read it back later. However, relying on the fact that the lines of a website are returned with the same newline feeds may cause you problems in your script.

-genius_at_work