Cheatsheet: Difference between revisions

Line 416:
GET /index.html HTTP/1.1
Host: www.example.com
 
Server response:
HTTP/1.1 302 Found
Location: http://www.example.org/index.php
2) To provide informationinfo about the location of a newly created resource, the Location header should be sent with an HTTP status code of 201 or 202.
Host: The host Header tells the webserver which virtual host to use if same virtual host is using several aliases
Accept: