*boing* Unless I'm missing something, you solve it by adopting the CGI strategy, that is, you
read until you've read CONTENT_LENGTH bytes (if its not greater than POST_MAX).
MJDsays "you can't just make shit up and expect the computer to know what you mean, retardo!"