Try making the variable first?
on *:SOCKREAD:test:{
if ($sockerr) {
if (!$window(@READ)) { window -z @READ }
aline -h @READ Socket Error - $sock($sockname).wmsg ( $+ $v1 $+ )
}
else {
var %t
sockread %t
aline -hp @READ %t $crlf
}
}
also, you don't need the http:// protocol in the Host: