Do newer PHP versions support HTTP methods natively?

Question:

Do newer PHP versions support HTTP methods natively?

Answer:

PHP is a language, HTTP is a protocol.

The web server through FastCGI sends what came from the browser to PHP. PHP parses the request (it is in the form of text), initializes $_SERVER , $_GET , $_REQUEST and so on. Which method was called – you can see through $_SERVER['REQUEST_METHOD'] .

More than PHP knows nothing about HTTP methods. Moreover, in the request, you can send any name at all as an HTTP method.

Also there is an answer on enSO

Scroll to Top