Hi,
I'm trying to use a pre-existing CGI script without modification. I'd like to use an input filter to tack on something to the POST string. My filter adds the string, but the CGI sees a CONTENT_LENGTH environmental variable that corresponds to its original length. How do I update the CONTENT_LENGTH?
You can do that only in the Connection level filter, Request level filter is too late.
I've tried setting %ENV in my filter, setting CONTENT_LENGTH with $f->r->subprocess_env, and using headers_out->set('Content-Length'). In the first two
^^^^
That's headers *out* (==response), you want headers_in. I haven't tried that, but it may work in any phase before the response handler (instead of connection filter).
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html