Hello all,
I need to redirect the user from one page to another, but I need to maintain the original referer string. So, for example, if they start out on http://www.othersite.com/pageA.jsp, click a link that takes them to http://www.mysite.com/pageB.jsp, which then executes a 302 redirect to http://www.mysite.com/pageC.jsp, I need the referer string to contain "http://www.othersite.com/pageA.jsp"
Is this the normal behavior for a 302 redirect? Or would my original referer get dropped, in favor of "http://www.mysite.com/pageB.jsp" ? That would not be desirable.
I don't know if it makes any difference, but I'm working in JSP, and I'm using response.sendRedirect() to execute the 302 redirect.
I should mention that I did an experiment with this, and it seems to have kept the original referer string ("http://www.othersite.com/pageA.jsp") but I just wanted to make sure this was the normal default behavior, and not something weird on my end.
Thank you for your help.
EDITED TO ADD :
Although I'm currently using a 302 redirect, I could probably use a 301 redirect instead. Do you know if the behavior for 301 redirects is any more reliable?