Book Image

Understanding TCP/IP

By : CP Books a.s.
Book Image

Understanding TCP/IP

By: CP Books a.s.

Overview of this book

This book covers in detail the Open System Interconnection (OSI) reference model and the TCP/IP protocols that operate that different layers. Its coverage includes various application protocols. The authors explain in an easy-to-read style networking concepts and protocols, with examples that make the book a practical guide in addition to its coverage of theory.
Table of Contents (20 chapters)
19
Index

14.10 Other Header Fields

Now we discuss about some other header fields.

14.10.1 Accept Header Field

Using the Accept, Accept-Charset, Accept-Encoding, and Accept-Language header fields, the client notifies of its capabilities in its request. Each of these header fields can contain several parameters separated by commas. These parameters, in every instance, can have a quality (q) associated with them, which can be stated after a semicolon. The quality is a number between 0 and 1. The higher the quality of the property, the more it is preferred by the client and it is 1 (the default value is q=1). An asterisk can be used to specify all the possible choices of the property.

Using the Accept header field, the client specifies supported media types. For example:

Accept: text/*;q=0.3, text/html, image/jpeg;q=0.7, model/vrml, */*;q=0.1

This code states that the client prefers:

  1. any text with quality 0.3
  2. text/html with quality 1
  3. image/jpeg with quality 0.7
  4. model/vrml with quality 1
  5. any medium with...