need to write a fitler based on request header

2008-02-27 Thread J. Peng
Hello members, I need to write an input filter based on the request headers. If request includes a "Accept-Encoding: gzip, deflate" header, I should redirect the request to /pathA. If request doesn't include that header, I should redirect the request to /pathB. (pathA and pathB are web document di

Re: Executing CGI programs from within mod_perl

2008-02-27 Thread Colin Wetherbee
Michael Peters wrote: Colin Wetherbee wrote: Basically, I'd like to run the 'mapserv' binary from within mod_perl Why? Don't you just want to sanitize the data? If so you can do that in a FixUpHandler or even in a separate handler that does an internal_redirect to the mapserv's url. I also

Re: Executing CGI programs from within mod_perl

2008-02-27 Thread Michael Peters
Colin Wetherbee wrote: > Basically, I'd like to run the 'mapserv' binary from within mod_perl Why? Don't you just want to sanitize the data? If so you can do that in a FixUpHandler or even in a separate handler that does an internal_redirect to the mapserv's url. -- Michael Peters Plus Three, L

Executing CGI programs from within mod_perl

2008-02-27 Thread Colin Wetherbee
Greetings. I use a program called MapServer to generate images. It's a C binary, and most people seem to run it (essentially) directly as a CGI program. By essentially, I mean the binary is typically requested by JavaScript or Flash or other things like that. I'm doing some dynamic mapping