How To Get the Posted Header data in PHP?

QuestionsCategory: PHPHow To Get the Posted Header data in PHP?
devchandan Staff asked 1 month ago

How To Get the Posted Header data in PHP? I am posting data from post man. How can i get the posted device id.

1 Answers
matrix Staff answered 1 month ago

 

$headers = getallheaders();
foreach( $headers as $name => $value) {
     echo "$name: $value\n";
}

How to Get the Header Data CakePHP or PHP?
https://www.stackofcodes.in/2019/05/19/how-to-get-the-header-data-cakephp-or-php/