|
Posted by max.schulze@googlemail.com on 06/12/07 15:25
On Jun 12, 10:20 am, alex <m...@privacy.net> wrote:
> I'm building a Resty interface and i'm trying to POST data from a web
> 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)
>
> thanks,
> alex.
Global variables should ever be reliable! I think since PHP 5.1.6 you
can trust them.
If you work with redirection you should use the
REDIRECT_REQUEST_METHOD.
Navigation:
[Reply to this message]
|