Change these lines and it will work fine....
sockmark tvrage $1 $+(/quickinfo.php?show=,$2) $iif($3,$3,) to sockmark tvrage $1 $+(/tools/quickinfo.php?show=,$2) $iif($3,$3,)
and...
sockwrite -n $sockname Host: tvrage.com to sockwrite -n $sockname Host: services.tvrage.com