Just a sidenote.. Due to the way TCP works, using the -f flag with /sockread for a line-based protocol can result in lines being cut in half. As far as I know, the best way of reading the last, non-CR/LF terminated line, without risking that other lines be cut in half, is:
1) to use /sockread without -f in the normal on SOCKREAD event, and,
2) to issue one final /sockread with -f in the on SOCKCLOSE event.
This, of course, only works if the HTTP server closes the connection after sending the reply.