Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- REQUEST_METHOD vs REDIRECT_REQUEST_METHOD
June 12, 2007, 8:20 am
rate this thread
page via a normal web form with method="POST" in it's form tag.
When i submit the data to my resource the variable
$_SERVER["REQUEST_METHOD"] reports "GET" and there is a
$_SERVER["REDIRECT_REQUEST_METHOD"] which reports "POST".
The resource pages are accessed using the apache 404 error page:
- The web page gets the request (http://myserver/path/to/my/resource)
- The url it's not found and the url string is parsed
- The resource /path/to/my/respurce is checked
- The resource data is returned
So, do i have to use the REDIRECT_REQUEST_METHOD server variables
instead of REQUEST_METHOD??
Is it a reliable variable?? (i.e all web servers produce this variable
when accessing a resource in this fashion)
Re: REQUEST_METHOD vs REDIRECT_REQUEST_METHOD
I was not refering about reliable in a "security" sense but in:
will the variable exist if someone uses the application under a IIS (for
instance) instead of Apache.
BTW, i learned the hard way that ErrorDocument redirection does not keep
$_POST variables you sent, so i've got to redesign server configuration
to use mod_rewrite which will make things easier for me.
thanks anyways :)