Cheatsheet: Difference between revisions
→HTTP Headers
Line 412:
Set-cookie:
Location: 1) Used to ask a web browser to load a different web page:
Client request:
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 information 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:
|