You are here: REQUEST_METHOD vs REDIRECT_REQUEST_METHOD « PHP Programming Language « IT news, forums, messages
REQUEST_METHOD vs REDIRECT_REQUEST_METHOD

Posted by alex on 06/12/07 08:20

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация