HTTP Headers Online Viewer
This page shows you the basic Server PHP headers that comes through PHP's $_SERVER variable
| HTTP_X_CC_ID | ccc03-01 |
| HTTP_HOST | www.herp.in |
| HTTP_USER_AGENT | CCBot/1.0 (+http://www.commoncrawl.org/bot.html) |
| HTTP_ACCEPT | text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
| HTTP_ACCEPT_LANGUAGE | en-us,en;q=0.5 |
| HTTP_ACCEPT_ENCODING | gzip |
| HTTP_ACCEPT_CHARSET | ISO-8859-1,utf-8;q=0.7,*;q=0.7 |
| HTTP_CONNECTION | close |
| HTTP_CACHE_CONTROL | no-cache |
| HTTP_PRAGMA | no-cache |
| HTTP_COOKIE | T12L_LANG=en |
| PATH | /sbin:/usr/sbin:/bin:/usr/bin |
| SERVER_SIGNATURE | Apache/2.2.22 (CentOS) Server at www.herp.in Port 80 |
| SERVER_SOFTWARE | Apache/2.2.22 (CentOS) |
| SERVER_NAME | www.herp.in |
| SERVER_ADDR | 76.73.85.226 |
| SERVER_PORT | 80 |
| REMOTE_ADDR | 38.107.179.229 |
| DOCUMENT_ROOT | /home/admin/ugleh/herp/ |
| SERVER_ADMIN | root@localhost |
| SCRIPT_FILENAME | /home/admin/ugleh/herp/httpheaders.php |
| REMOTE_PORT | 59277 |
| GATEWAY_INTERFACE | CGI/1.1 |
| SERVER_PROTOCOL | HTTP/1.1 |
| REQUEST_METHOD | GET |
| QUERY_STRING | |
| REQUEST_URI | /httpheaders.php |
| SCRIPT_NAME | /httpheaders.php |
| PHP_SELF | /httpheaders.php |
| REQUEST_TIME | 1337475792 |
| argv | Array |
| argc | 0 |
The code provided by PHP.net is shown below for anyone who wants it
<?php
echo '<table border="1">';
foreach ($_SERVER as $k => $v){
echo "<tr><td>" . $k ."</td><td>" . $v . "</td></tr>";
}
echo "</table>"
?>