Hi, We need the fix for multipart forms introduced in 5.5.20 so go back to version 5.5.17 is not an option.
But the problem seems even worse because forms POST'ed does not work with the CGI module! We have to many Perl-scripts that use the CGI-module so rewriting them to read directly from stdin is not doable. The following Perl script taken from a tutorial on the net works if the form is sent with GET but not with POST! #! /usr/bin/perl use CGI; $cgi = new CGI; for $key ( $cgi->param() ) { $input{$key} = $cgi->param($key); } print qq{Content-type: text/html <html><head></head><body> }; foreach $key (sort (keys %ENV)) { print $key, ' = ', $ENV{$key}, "<br>\n"; } for $key ( keys %input ) { print $key, ' = ', $input{$key}, "<br>\n"; } print qq{<form METHOD=POST><input type="submit" value="Post Request"> <input name="postfield"></form>}; print qq{<form METHOD=GET ><input type="submit" value="Get Request "> <input name="getfield" ></form>}; print qq{</body></html>}; Regards Gunnar > -----Ursprungligt meddelande----- > Från: Mark Thomas [mailto:[EMAIL PROTECTED] > Skickat: den 18 oktober 2006 02:42 > Till: Tomcat Users List > Ämne: Re: SV: SV: SV: SV: Problem with filter and calling > Perl-script with Tomcat 5.5.20 > > [EMAIL PROTECTED] wrote: > > Hi, > > > > I can reach the request object and add a parameter, the > problem is that the CgiServlet in Tomcat has been changed so > my code doesn't work anymore. > > > > Regards > > Gunnar > > You are correct. The fix for bug 37285 is the root of your problems. > > You have a couple of options: > - Replace servlet-cgi.jar in 5.5.20 with the one from 5.5.17 > - Add some code to your cgi to read the parameters from > stdin. A quick google found the following code shippet that > should help - > http://www.personal.psu.edu/staff/j/c/jcd/useful/webcon/2004/io.html > > HTH, > > Mark > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org To > unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]