Find out HTTP method in PHP
http, php
Solution
$_SERVER['REQUEST_METHOD']
See the docs. It will contain the request method upper-cased (i.e. 'GET', 'HEAD', 'POST', 'PUT').
Problem
How can I find out which method (usually GET or POST) is used for the current request?