how to set cgi environment variables
I'm attempting to write a java web server that supports cgi scripts. First, how would I run a cgi on my server. How would I pass important environment variables like CONTENT_LENGTH so the cgi can access it in a standardized way. Also, how would I pass the encoded post data from a form to the cgi's stdin. Do these change whether the cgi is written in C or PERL?