tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Schildbach" <andreas.schildb...@bch-fms.de>
Subject Error with request.getServerPort() and Tomcat 3.2.1, SSL (https)
Date Tue, 09 Jan 2001 13:19:26 GMT
Hello,

I've written a simple servlet which prints out request.getServerPort().
It is running on a Tomcat 3.2.1 (win32) configured to http on port 80 and
https on port 443.
When I try to access the servlet under http://localhost/..., it prints out
port 80.
ERROR: When I try to access the servlet via https://localhost/..., it also
prints out port 80!
Why? It should print out port 443 in my opinion.
As a result, HttpUtils.getRequestURI contructs the wrong URI
(https://localhost:80/...) when accessing via https... This can't be it?!
Or am I wrong?

Could anyone help me or provide me with a patch?

Thanks in advance!

Andreas Schildbach
financial media service



Mime
View raw message