| |

12 (Content Negotiation).

HTTP , , . " " , . , , . , HTTP " " - , .

: " " ("format negotiation"), , , ..

, (entity-body) , .

, HTTP: . , , , . , , , , , , .

12.1 .

, , . ( ; , (content-coding), ..) , , ( ).

, , " " ( , " " ). , (Accept, Accept-Language, Accept-Encoding, ..), .

:

  1. , " " , , , (, ?).
  2. ( , ) .
  3. .
  4. .

HTTP/1.1 (request-header), : Accept ( 14.1), Accept-Charset ( 14.2), Accept-Encoding ( 14.3), Accept-Language ( 14.4), and User-Agent ( 14.42). , , , , .

HTTP/1.1 Vary ( 14.43) , . Vary , ( , "" ).

HTTP/1.1 Vary, , , 13.6, .

12.2 .

, . , ( Alternates, 19.6.2.1) . URI. ( ) ( ) .

, ( , , ), , .

, . , . , , HTTP/1.1.

HTTP/1.1 300 ( , Multiple Choices) 406 ( , Not Acceptable) , , .

12.3 .

- . ( ) , .

, . , , .

, HTTP/1.1. HTTP/1.1 , Vary ( , ) , , HTTP/1.1 . , , .


Copyright  ©  1998 Alex Simonoff (http://www.omsk.com/Leshik/), All Rights Reserved.


| |