aspose file tools*
The moose likes Security and the fly likes How to switch from https to http? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "How to switch from https to http?" Watch "How to switch from https to http?" New topic

How to switch from https to http?

Gagan Grover

Joined: Mar 02, 2007
Posts: 17

I am using the below code to switch from http to https on the login page.

How to switch back from https to http?

A solution I read on one of the posts is to provide the next url as absolute by prefixing the url with http:// and hence all the other urls will be relative to this http. But in this case I don't know how to get the port number for http as I am currently on https.

Please help me on the same.

kritika das

Joined: Jun 17, 2011
Posts: 10
I am suggesting you a link that might be able to help you:
I agree. Here's the link:
subject: How to switch from https to http?
Similar Threads
http https switch
Redirecting to HTTPS
Switching from HTTPS back to HTTP
web.xml security-constraint question
HttpServletRequest - RequestDispatcher - Forward - is not using Constraint