In programming languages header information of request and response is very important. The header of request tells the behavior of request and header response tells the request is success or failed, In case failed you can also know the which type error was accrued with help of HTTP response code.
PHP provide is getallheaders() to for get all header information.This function is used for fetches all HTTP headers from the current request. getallheaders() is an alias for apache_request_headers().
1 2 3 4
<?php echo"<pre>"; print_r(getallheaders()); ?>
Latest posts by Parvez (see all)
- Codassium – Online Code Editor With Real-Time Coding - January 31, 2015
- WebRTC – Share Audio, Video and Data in Real Time - January 29, 2015
- Progressive Image : Resizes Your Images Based on Browser Size - January 26, 2015