Forums Register Login

getRequestURL() returning only http instead of https?

+Pie Number of slices to send: Send
Even though we are accessing the site using https://aaa.bbb.com/... when I use
getRequestURL() inside the servlet, I am getting http://aaa.bbb.com/.... I am not getting https.

What method do I need to use to get the correct protocol that I have used?

Also we have clusttered env in production? Will I encounter any problems when application goes to
production?
+Pie Number of slices to send: Send
I had a similar problem, so I used this :



and this will do the same job as getRequestURL().

[ September 11, 2006: Message edited by: vishwanath nadimpally ]
[ September 11, 2006: Message edited by: vishwanath nadimpally ]
+Pie Number of slices to send: Send
But even when I use this, I am still getting http, instead of https.
Thank you for your help.
It's a pleasure to see superheros taking such an interest in science. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 5931 times.
Similar Threads
http url getting converted into https
how is HTTPS handled
servlet calling another servlet (SSL)
Grab the entire current URI
URL changes after redirect
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:42:21.