Hmm, why are you using timers to sockwrite to the connection? They serve no purpose as far as I can tell. Btw you don't need to put a $crlf after each header entry, since you are using the 'n' switch from sockwrite, which will append a $crlf already. Anyway, you've been helped accordingly, so I suppose this thread is finished.