Hi,
Who can tell me the difference between
getRemoteAddr() (method of ServletRequest) and getRemoteUser() (method of
HttpServletRequest).
Whether one of them is related to the proxy...?
the second problem is why the returned value of getProtocol() is Http/1.0?
But I find the configs of the internet
option is http/1.1.
The following is the returned values of some methods.
Thanks very much!
Yang yuexiang
--------ServletRequese-----------
getContentLength():9
getContentType():application/x-www-form-urlencoded
getProtocol():HTTP/1.0
getScheme():http
getServerName():155.69.92.31
getServerPort():8080
getRemoteAddr():155.69.1.44
getRemoteHost():news.ntu.edu.sg
getParameter:namepost =
getReader():null
--------HttpServletRequese-----------
getAuthType():null
getMethod():POST
getPathInfo():
getPathTranslated():C:/jsdk2.1/study/
getQueryString():null
getRemoteUser():null
getRequestedSessionId():null
getRequestURI():/casestudy/study
getServletPath():/study
getheader:Accept = application/vnd.ms-excel, application/msword,
application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, */*
getheader:Referer = http://155.69.92.31:8080/casestudy/
getheader:Accept-Language = en,zh-cn;q=0.7,zh-sg;q=0.3
getheader:Content-Type = application/x-www-form-urlencoded
getheader:Accept-Encoding = gzip, deflate
getheader:User-Agent = Mozilla/4.0 (compatible; MSIE 5.0; Windows 98)
getheader:Host = 155.69.92.31:8080
getheader:Content-Length = 9
getheader:Pragma = no-cache
getheader:Extension = Security/Remote-Passphrase
getheader:Via = 1.0 proxy2.ntu.edu.sg:8080 (Squid/1.1.20)
getheader:X-Forwarded-For = 155.69.92.31
getheader:Cache-control = Max-age=259200
Yang Yuexiang.vcf