The magic of the web is that we can interact not only just with one application, but with a lot of applications, sharing data between all of them. For example, you can fill in a form, which is shared with other applications, to create a ticket, and all future forms will fill in automatically just using the information that you entered before.
To do that, applications commonly use redirection. There are different types of redirects, but the most common are the following:
- HTTP 300: Multiple choices
- HTTP 301: Moved permanently
- HTTP 302: Found
- HTTP 303: See other
- HTTP 307: Temporary redirect
The redirections could be used with a GET request to move the user from one site to another, which means using the URL and passing the destination as a parameter. Alternatively, they could be defined using the headers in the website or through JavaScript code.
If...