not using rewindable input (TeeInput); making sure that before sending response all input is read