httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Troxel Steven O CRBV <>
Subject [users@httpd] Internal Redirect Changes POST to GET
Date Fri, 18 Apr 2003 20:50:46 GMT
I have noticed with Apache 2.* that a "internal redirect" such as when using RewriteRule or
DirectoryIndex directive that a POST request method is transformed to a GET method resulting
in the lose of POST form parameters. 

For example:

In a dir /somedir if you have a .htaccess file with a rewrite rule

RewriteRule *. /cgi-bin/

Then is internally redirected to the application  Since
this is an internal redirect the browser never knows the difference.  Everything works fine
for a GET method and the QUERY_STRING is preserved however if the original method was a POST
the request method is changed to a GET internally and form parameters are lost. 

This use to work with Apache 1.3.*. with both RewriteRule and DirectoryIndex and I cannot
see any logical reason why you would want the method transformed.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message