I usually just do:
Code:
on *:sockopen:name:{
  var %swrite = sockwrite -n $sockname

  %swrite GET /path/to/page.php HTTP/1.0
  %swrite Host: sub.domain.com
  %swrite User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
  %swrite
}

on *:sockread:name:{
  if ($sockerr) { return }
  var %s | sockread %s

  while ($sockbr) {
    echo -a : %s
    sockread %s
  }
}