Using the http headers, service information is exchanged between the client and server. This information remains invisible to users, but without it the correct operation of the browser is impossible. For ordinary users, the information about this and the tasks of http headers will seem rather complicated, but in fact they do not contain difficult formulations. This is what the web user encounters daily.
What are http headers?
« » – http . , «-». , , . , , , . «» , http:// .
, DNS. http ( ), , header. .
, http . HTML-, . . PHP, header.
. , http , . . , http - . , , . http – web-. , – ligthttp, apache, nginx. , . http , , .
. :
– http. :
- . .
- (path). URL, .
- . protocol http.
1.1. ": ".
HTTP-
, HTML-, ( , ). .
, -. URL, . , , http nginx. , .
HTTP- , . . , HTTPS.
http
http expires. . , . , : Expires: Wen, 30 Nov 2016 13:45:00 GMT. , . , .
http proxy header link. . , URL . , URL. vary . , , . , . TTP accept , , .
, . – , , . .
HTTP authorization . web- , . , http. «».
?
http , , , firefox:
- Firebug. net (), all (). , -.
- Live http headers. , http . .
- Ghrome , , (net works).
, .
, HTTP, , . .
- GET. . .
- POST. . , , POST- .
- HEAD. , . -, . , . , .
- PUT. URL. .
- OPTIONS. .
- URI. URL.
http
. , , (200). , :
- «» . . .
- , 404, .
- 206 , .
- 401 . , , .
- , 403. , – .
- : , , . , . 500, , .
URL – ?
URL – - . URL – . url . : http (), hoot ( ), port, resourte path query.
https . URL- . , , .
URL – , . SEO url .
, :
- , . max-age.
- URL.
- , , . , .
- Last-Modified headers must be up to date with the latest content changes. Do not re-save pages and documents unless you change them.
- Use POST requests only where needed. Minimize SSL.
- Headers before sending the server should be checked by the REDbot plugin.