print headers received by Clearpass Guest

Aruba Employee
Aruba Employee

This code can be inserted into any customizable page and will print out headers received by the server from the client browser :

-------- BEGIN HEADERS --------------
{php}
foreach($_SERVER as $h=>$v)
if(ereg('HTTP_(.+)',$h,$hp))
echo "<li>$h = $v</li>\n";
header('Content-type: text/html');
{/php}
-------- END HEADERS --------------<br>


Example output:

-------- BEGIN HEADERS --------------
HTTP_HOST = token.corp.airwave.com
HTTP_USER_AGENT = Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
HTTP_ACCEPT = text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE = en-us,en;q=0.5
HTTP_ACCEPT_ENCODING = gzip, deflate
HTTP_CONNECTION = keep-alive
HTTP_REFERER = https://token.corp.airwave.com/radius_weblogins.php
HTTP_COOKIE = __utma=194714429.1820410070.1304705809.1327945906.1327949668.17; __utmz=194714429.1304705809.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); color_0=0,0,0; color_1=102,102,102; color_2=204,204,204; color_3=255,255,255; color_4=204,40,40; color_5=204,204,40; color_6=40,204,40; color_7=40,204,204; color_8=40,40,204; color_9=204,40,204; GSID=ndfb8e9t9bpbok1jtumvjk1p74
-------- END HEADERS --------------

Version history
Revision #:
1 of 1
Last update:
‎06-29-2014 11:14 AM
Updated by:
 
Labels (1)
Contributors
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: