instead of useing a variable to store the url use /sockmark horoz $2 then use sockwrite -n $sockname GET $sock($sockname).mark HTTP/1.0