Monitoring, Management & Location Tracking

 View Only
last person joined: one year ago 

Articles relating to existing and legacy HPE Aruba Networking products and solutions including AirWave, Meridian Apps, ALE, Central / HPE Aruba Networking Central, and UXI / HPE Aruba Networking User Experience Insight

print headers received by Clearpass Guest 

Jun 29, 2014 02:14 PM

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>
";
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 --------------

Statistics
0 Favorited
1 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.