What is an http header?

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.

http header




What are http headers?

« » – http . , «-». , , . , , , . «» , http:// .

, DNS. http ( ), , header. .





, http . HTML-, . . PHP, header.

ttp accept header




. , http , . . , http - . , , . http – web-. , – ligthttp, apache, nginx. , . http , , .

. :

  • ( );
  • ( );
  • (, ).

– http. :





  1. . .
  2. (path). URL, .
  3. . protocol http.

1.1. ": ".

caching http headers on nginx server




HTTP-

, HTML-, ( , ). .

, -. URL, . , , http nginx. , .

HTTP- , . . , HTTPS.

http header fields




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 proxy headers




?

http , , , firefox:

  • Firebug. net (), all (). , -.
  • Live http headers. , http . .
  • Ghrome , , (net works).

, .

, HTTP, , . .

  • GET. . .
  • POST. . , , POST- .
  • HEAD. , . -, . , . , .
  • PUT. URL. .
  • OPTIONS. .
  • URI. URL.

protocol http header




http

. , , (200). , :

  1. «» . . .
  2. , 404, .
  3. 206 , .
  4. 401 . , , .
  5. , 403. , – .
  6. : , , . , . 500, , .

URL – ?

URL – - . URL – . url . : http (), hoot ( ), port, resourte path query.

https . URL- . , , .

URL – , . SEO url .

http headers expires




, :

  • , . 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.




All Articles