<html>
<?php
error_reporting(E_ERROR);

foreach($_SERVER as $key => $value)
{   
	if (substr($key,0,5) == 'HTTP_')	
        $headers[$key] = $value;
    if (substr($key,0,13) == 'HTTP_SESSION_')
        $cust_headers[$key] = $value;
}
print"<br><br>";
print "<table border=1>";
print "<tr bgcolor=tan><td colspan=2><b>Request Headers</tr>";
foreach($headers as $key => $value)
    echo '<tr><td>', $key, '<td>', $value, '</tr>';
print "</table>";

print"<br>";
print "<table border=1>";
print "<tr bgcolor=tan><td  colspan=2><b>Custom Request Headers</th>";
foreach($custHeaders as $key => $value)
    echo '<tr><td>', $key, '<td>', $value, '</tr>';
print "</table>";


?>
</div>

<?php include "../include.php"; ?>              <!-- hyperlink to see the code -->
</body>
</html>