<%
// Header. jsp
Out. println ("Protocol:" + request. getprotocol () + "<br> ");
Out. println ("Scheme:" + request. getscheme () + "<br> ");
Out. println ("server name:" + request. getservername () + "<br> ");
Out. println ("server port:" + request. getserverport () + "<br> ");
Out. println ("Protocol:" + request. getprotocol () + "<br> ");
Out. println ("server info:" + getservletconfig (). getservletcontext (). getserverinfo () + "<br> ");
Out. println ("remote ADDR:" + request. getremoteaddr () + "<br> ");
Out. println ("remote host:" + request. getremotehost () + "<br> ");
Out. println ("character encoding:" + request. getcharacterencoding () + "<br> ");
Out. println ("Content Length:" + request. getcontentlength () + "<br> ");
Out. println ("content type:" + request. getcontenttype () + "<br> ");
Out. println ("auth type:" + request. getauthtype () + "<br> ");
Out. println ("HTTP Method:" + request. getmethod () + "<br> ");
Out. println ("Path Info:" + request. getpathinfo () + "<br> ");
Out. println ("path trans:" + request. getpathtranslated () + "<br> ");
Out. println ("query string:" + request. getquerystring () + "<br> ");
Out. println ("remote user:" + request. getremoteuser () + "<br> ");
Out. println ("session ID:" + request. getrequestedsessionid () + "<br> ");
Out. println ("request URL:" + request. getrequesturl () + "<br> ");
Out. println ("request URI:" + request. getrequesturi () + "<br> ");
Out. println ("Servlet Path:" + request. getservletpath () + "<br> ");
Out. println ("created:" + session. getcreationtime () + "<br> ");
Out. println ("lastaccessed:" + session. getlastaccessedtime () + "<br> ");
Out. println ("accept:" + request. getheader ("accept") + "<br> ");
Out. println ("Host:" + request. getheader ("host") + "<br> ");
Out. println ("Referer:" + request. getheader ("Referer") + "<br> ");
Out. println ("Accept-language:" + request. getheader ("Accept-language") + "<br> ");
Out. println ("Accept-encoding:" + request. getheader ("Accept-encoding") + "<br> ");
Out. println ("User-Agent:" + request. getheader ("User-Agent") + "<br> ");
Out. println ("connection:" + request. getheader ("connection") + "<br> ");
Out. println ("Cookie:" + request. getheader ("cookie") + "<br> ");
%>
For details about request. getheader ("Referer"), request. getheader ("Referer") gets the visitor's address. Only pass
LinkThe address of the previous page can be obtained only when you access the current page; otherwise, request. the value of getheader ("Referer") is null. open open current page or enter the address directly, it is also null.