<%@ page language="java" contentType="text/html; charset=GBK" %>
<%@ page import="java.io.*" %>
<%@ page import="java.net.*" %>
<%@ page import="java.util.*,weaver.general.Util" %>
<%@ page import="weaver.hrm.HrmUserVarify" %>
<%@ page import="weaver.hrm.User" %>
<%@ page import="org.apache.commons.lang.StringEscapeUtils" %>
----------------------------------------------------------<br/>
<%
	User user = HrmUserVarify.getUser(request, response);
	if(user!=null ){
		out.println("x-forwarded-for::::"+ StringEscapeUtils.escapeHtml(request.getHeader("x-forwarded-for"))+"<br/>");
		out.println("Proxy-Client-IP::::"+StringEscapeUtils.escapeHtml(request.getHeader("Proxy-Client-IP"))+"<br/>");
		out.println("WL-Proxy-Client-IP::::"+StringEscapeUtils.escapeHtml(request.getHeader("WL-Proxy-Client-IP"))+"<br/>");
		out.println("getRemoteAddr::::"+StringEscapeUtils.escapeHtml(request.getRemoteAddr())+"<br/>");
		out.println("Util.getIpAddr()::::"+StringEscapeUtils.escapeHtml(Util.getIpAddr(request))+"<br/>");
		out.println("request::::"+request);

		out.println("<br/><br/>-----------------------------headers----------------<br/>");
		Enumeration headers = request.getHeaderNames();
		while(headers.hasMoreElements()){
			String header = ""+headers.nextElement();
			out.println("*********"+StringEscapeUtils.escapeHtml(header)+"---->"+StringEscapeUtils.escapeHtml(request.getHeader(header))+"<br/>");
			Enumeration headerValues = request.getHeaders(header);
			while(headerValues.hasMoreElements()){
				String headerValue = ""+headerValues.nextElement();
				out.println("*********"+StringEscapeUtils.escapeHtml(header)+"---->"+StringEscapeUtils.escapeHtml(headerValue)+"<br/>");
			}
		}
}else{
	out.println("no right!");
}
%>
<br/>
-------------------------------------------------------------