kakalake, you can rate the thread if you like to. It doesn't matter for me, I am just glad to help people out.
Good luck with your program.
PS. I just noticed that since my updated version of wwwgrab use "Connection: Keep-Alive", recv() won't terminate with zero until it times out... Maybe you need to remove the keep-alive feature...
