aspose file tools*
The moose likes Java in General and the fly likes problem in HTTP response redirect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

problem in HTTP response redirect

Deboleena Chakraborty
Greenhorn

Joined: May 10, 2004
Posts: 6
In my project .. all forwards are being done with https..
but there is a redirect when cancel is done from a page, which then redirects to the return url, which can either start with http or https.
There is a load a load balancer concept in my project which checks for the base scheme and location and redirects all return urls to https.

But I dont want this. Some suggested that location should be specified. Which I have already done. See the code below. Is there anything in which I can change the http response scheme explicitly from https to http.

String returnURL = createSuccessURL(replaceAmp(transactionInfoDTO.getMerchantReturnURLBack()), transactionInfoDTO.getEntranceCode(), transactionId);
response.setStatus(HttpServletResponse.SC_SEE_OTHER);
response.setHeader("Location", response.encodeRedirectURL(returnURL));
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39575
    
  27
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in HTTP response redirect
 
Similar Threads
Acegi redirects to http and not https? (advanced)
External URL passing current url
Authorization in JSF
problem in HTTP response redirect
How to control redirection: http, https, and trailing slashes