Re: Send parameters thru servlet. Read it from a client exe.
Saturday, January 29, 2005 08:18 AM
Normally an application reads input streams like stdin, but also has access to the parameters you can put on the "command line" e.g. argv. But with an application invoked via a mime type from the web, I don't know how you would alter the argv.
You are apparently trying to write parameters to the response, but that is just going to become the content of the document that the application will read as its input. Like the previous reply said, the browser will save the response in the cache and then call your application on that cached document, so your parameters will be in the first few bytes of the document.
So if you design your application so it can get parameters from the first few bytes of its input, you could do it the way you are doing it.