You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/12/18 11:47:41 UTC
DO NOT REPLY [Bug 5479] New: -
HttpRequest.getRemoteAddr() returns localhost invoking a jsp or servlet directly, without a connected web server
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5479>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5479
HttpRequest.getRemoteAddr() returns localhost invoking a jsp or servlet directly, without a connected web server
Summary: HttpRequest.getRemoteAddr() returns localhost invoking a
jsp or servlet directly, without a connected web server
Product: Tomcat 3
Version: 3.3 Final
Platform: PC
URL: http://www.prosa.com
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: Webapps
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: saviane@prosa.com
I installed Tomcat on my server. Invoking one of the sample jsp
(http://www.prosa.com/examples/jsp/snp/snoop.jsp)
returns the expected snoop values:
JSP Request Method: GET
Request URI: /examples/jsp/snp/snoop.jsp
Request Protocol: HTTP/1.1
Servlet path: /jsp/snp/snoop.jsp
Path info: null
Path translated: null
Query string: null
Content length: 0
Content type: null
Server name: www.prosa.com
Server port: 80
Remote user: null
Remote address: 195.120.217.111
Remote host: 195.120.217.111
Authorization scheme: null
Locale: it
Invoking the same jsp page bypassing the web server
(http://www.prosa.com:3080/examples/jsp/snp/snoop.jsp) produces the following
values:
JSP Request Method: GET
Request URI: /examples/jsp/snp/snoop.jsp
Request Protocol: HTTP/1.1
Servlet path: /jsp/snp/snoop.jsp
Path info: null
Path translated: null
Query string: null
Content length: -1
Content type: null
Server name: www.prosa.com
Server port: 3080
Remote user: null
Remote address: 127.0.0.1
Remote host: localhost
Authorization scheme: null
Locale: it
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>