Please wrap your code in [code][/code] tags or [spoiler][/spoiler] if it's exceptionally long. Replace your sockopen event with this to check for errors, it's a good idea to print this error information at the start and end of the other socket events as well. You may have errors on your status page if the sockwrites were not successful in the sockopen.

Also note that you're messaging %content in the wrong location, and that you would have a bunch of error messages if it got that far. After sockread %header, you should be messaging %header, not %content.

Code:
on *:sockopen:demo.*: {
  msg #rulerz error: $sockerr $sock($sockname).wsmsg
  var %<< = sockwrite -nt $sockname
  %<< GET $hget($sockname,request) HTTP/1.0
  %<< Host: $sock($sockname).addr
  %<< $crlf
  msg #rulerz error: $sockerr $sock($sockname).wsmsg
}

Last edited by Loki12583; 13/05/13 02:01 AM.