Hi all!
There is a controller that redirects user to a specific Url:
The problem is that after the redirect to the site "http://www.site.ru", I can't find my header "transfer_header"Code:@RequestMapping(value = "/goto", method = RequestMethod.GET) public String redirectToSite(ModelMap model, HttpServletRequest request, HttpServletResponse response) { String url = "http://www.site.ru"; response.addHeader("transfer_header", "whata_is_it"); return "redirect:" + url; }
Where is it?
How can I do the transfer of header correctly?
Thanks in advance for your help.



Reply With Quote
