Sorry for so many followups, but here is a slightly improved version (more sensible signature for 'request-thread, and fixed a bug in buffer handling). Let me know if it works. Regards, Andy