-
Book Overview & Buying
-
Table Of Contents
Understanding TCP/IP
By :
Now we discuss about some other header fields.
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:
0.3 text/html with quality 1 image/jpeg with quality 0.7 model/vrml with quality 1
Change the font size
Change margin width
Change background colour