in reply to Yet Another CGI question

You can hit CTRL-D (or whatever the appopriate combination is for end-of-input on Windows) to simulate a query-string. You can also redirect data from a file or from echo to the program (through standard input).