Home > Article > Backend Development > How to get Http request in php
php method to obtain Http request
$_SERVER introduction
$_SERVER is a containing An array of information such as header, path, and script locations.
Method example of obtaining Http request
$req_method = $_SERVER['REQUEST_METHOD']; echo $req_method;
Output result:
The above is the detailed content of How to get Http request in php. For more information, please follow other related articles on the PHP Chinese website!