Answers for "how to detect change in a http request json"

PHP
7

php detect request type

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
     // Boom baby we a POST method
}
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
     // We are a GET method
}
Posted by: Guest on October-30-2019
0

how to send http post create request using curl command

$ curl --data "param1=value1¶m2=value2" http://locahost:8080/weather
Posted by: Guest on May-02-2020

Code answers related to "how to detect change in a http request json"

Browse Popular Code Answers by Language