The difference between the forwarding and redirection of website skills-Website Application

Source: Internet
Author: User
REDIRECT process : client browser sends HTTP request----The Web server accepts and sends a 302 response requiring the client browser to send a new HTTP request----The client browser accepts this response and sends a new HTTP request to the server---- The server seeks resources from this request and sends it to the customer, which can redirect to any URL and cannot share data in the request scope.

forwarding Process : The client browser sends an HTTP request----The Web server calls an internal method to complete the request processing and forwarding action within the container after accepting the request----to send the target resource to the customer, which can only be used in the same Web application. You can share data in the request scope.

How do you choose to redirect or forward? Forwarding is usually faster and can keep objects within the request, so he is the first choice. However, since the URL in the browser still points to the start page after forwarding, the start page will be called back if the current page is overloaded. If you do not want to see such a situation, select redirect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.