Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getRequestURL() returning only http instead of https?  RSS feed

 
sudheshna Iyer
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
vishwanath nadimpally
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
sudheshna Iyer
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But even when I use this, I am still getting http, instead of https.
Thank you for your help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!