redirect and transfer of header to another URL
Hi all!
There is a controller that redirects user to a specific Url:
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;
}
The problem is that after the redirect to the site "http://www.site.ru", I can't find my header "transfer_header" :(
Where is it?
How can I do the transfer of header correctly?
Thanks in advance for your help.