Try this:

Code:

alias IOS {
  var %host = www.google.ca
  var %req = index.html
  ;
  if ($sock(IOS)) sockclose IOS
  sockopen IOS %host 80
  sockmark IOS %host %req
}

on *:SOCKOPEN:IOS:{
  sockwrite -n IOS GET /IOS/ $+ $gettok($sock(IOS).mark,2,32) HTTP/1.0
  sockwrite -n IOS Host: $gettok($sock(IOS).mark,1,32)
  sockwrite -n IOS $crlf
  sockmark IOS $false
}
on *:SOCKREAD:IOS:{
  var %s
  sockread %s
  if ($sock(IOS).mark == $false) {
    if (%s == $null) sockmark IOS $true
    return
  }   
  else {
    echo -a $+(4,>,3,%s)
  } 
}



-genius_at_work