I can't help you with the Address question, but the reason that getProtocol
returns HTTP/1.0 is because that is the protocol that your browser used when
requesting the page. It has nothing to do with the Server or Servlet
configuration.
If you press F1 in when that option is chosen in the "Internet Options..."
dialog, you'll get this statement:
"Specifies whether to attempt to use the HTTP 1.1 protocol when connecting
to Web sites by using a proxy server. Many Web sites still use HTTP 1.0, so
if you are having difficulties connecting to some Web sites, you may want to
clear this check box."
I would assume that you are not using a proxy server during your connection.
(*Chris*)
----- Original Message -----
From: #YANG YUE XIANG# <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 13, 1999 7:59 AM
Subject: getRemoteAddr(), getRemoteUser() in Servlets
> 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
>
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html