in reply to STDIN from CGI object

What are you trying to do that you think you need both? There's probably a better way.