I get a POST request like /grabcontent?url=/foo/bar.html
on my Apache server.
(yes, I know a POST request with a URL parameter makes no sense, but this is what I am getting from a 3rd party, cannot change this at the moment.)
/foo/bar.html
is actually a valid page on my server.
How can I change this into a GET request to /foo/bar.html
?
I know how to extract the URL parameter value, I know how to change the request internally using mod_rewrite. But how can I change the request from POST to GET internally?
I could write a dummy script that simply fetches content and map it to /grabcontent
of course, but I would rather avoid the extra overhead and use Apache out-of-the-box functionality.