• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in HTTP response redirect

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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));
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic