开发者

Does HTTP Forward request preserve the referer in the header?

开发者 https://www.devze.com 2023-04-02 10:31 出处:网络
I have a Java HttpServlet which uses the forward command from RequestDispatcher to send the user somewhere else sometimes. Does the HTTP Referer Header get preserved from the original request on forwa

I have a Java HttpServlet which uses the forward command from RequestDispatcher to send the user somewhere else sometimes. Does the HTTP Referer Header get preserved from the original request on forward? (I believe with redirect it doesnt). My feeling is that it is preserved since I think the client never knows ab开发者_Python百科out the forward.


Yes, it does, a forward inside the same server is just giving someone else the option to handle the request and the request and response objects usually go unchanged (unless you build a filter that changes these objects).

0

精彩评论

暂无评论...
验证码 换一张
取 消