Details of HTTP Redirect
GET / HTTP/1.1
Host: www.AirlineInc.com
http://www.AirlineInc.com
1
HTTP/1.1 302 Object Moved
Location: https://www.AirlineInc.com/login
2
AirlineInc.com
GET /login HTTP/1.1
Host: www.AirlineInc.com
3
Back to
the scenario ...
John Doe
1.
When John Doe types in the
URL at his browser, the browser
automatically (behind the scenes)
creates an HTTP GET message.
2. The airline service
receives the HTTP message and
responds with an HTTP
redirect message. 3. John Doe's
browser receives the redirect
HTTP message and then
automatically constructs
another HTTP GET message
(without John Doe's
involvement), using as the
URL the value of the Location
field.
time