i'm working on a script for a friend (and to help me learn how sockets work)
Code:
alias city {
  sockopen city mcfc.co.uk 80
}

on *:sockopen:city: {
  sockwrite -n $sockname GET /News/Club-news HTTP/1.1
  sockwrite -n $sockname User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
  sockwrite -n $sockname Host: mcfc.co.uk
  sockwrite -n $sockname Accept-Language: en-us
  sockwrite -n $sockname Accept: */*
  sockwrite -n $sockname
}

on *:sockread:city: {
  if ($sockerr) {
    echo -a Error.
    halt
  }
  else {
    var %temp
    sockread -f %temp
    if (<span class="cl-main"> isin %temp) {
      echo -a %temp
      halt
    }
  }
}

This returns the 10 <span> tags but no content.
Code:
<span class="cl-main">
	<span class="cl-main">
	<span class="cl-main">
	<span class="cl-main">
	<span class="cl-main">
	<span class="cl-main">
	<span class="cl-main">
	<span class="cl-main">
	<span class="cl-main">
	<span class="cl-main">


What i want to get is the content between the opening and closing span tags.
How can i achieve this? thanks in advance