I would like to use mod_rewrite to read parameters sent in POST requests. I need to check the value and process the request.

thanks,

Julien

link|improve this question
feedback

2 Answers

Mod_rewrite will not work on POST variables.

You would need to use mod_security to examine, and possibly run a url-rewriting script, on any POST variables.

link|improve this answer
feedback

I don't believe that it's possible.

mod_rewrite can only work on the contents of the initial request line, headers and environment variables. Whereas the parameters of a POST request are found within the request body.

link|improve this answer
Is there a module I can use to access the request body ? – Julien Sep 24 '09 at 11:50
@Julien: normally you would use a CGI script for that. Or some sort of web application (mod_python, mod_perl, Java servlet, PHP page, etc.) – David Zaslavsky Sep 24 '09 at 20:11
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.