Cheatsheet: Difference between revisions

Content added Content deleted
Line 416: Line 416:
GET /index.html HTTP/1.1
GET /index.html HTTP/1.1
Host: www.example.com
Host: www.example.com

Server response:
Server response:
HTTP/1.1 302 Found
HTTP/1.1 302 Found
Location: http://www.example.org/index.php
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.
2) To provide info about 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
Host: The host Header tells the webserver which virtual host to use if same virtual host is using several aliases
Accept:
Accept: