Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Understanding TCP/IP

You're reading from   Understanding TCP/IP A clear and comprehensive guide to TCP/IP protocols

Arrow left icon
Product type Paperback
Published in May 2006
Publisher Packt
ISBN-13 9781904811718
Length
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
CP Books a.s. CP Books a.s.
Author Profile Icon CP Books a.s.
CP Books a.s.
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Introduction to Network Protocols FREE CHAPTER 2. Network Monitoring Tools 3. Physical Layer 4. Link Layer 5. Internet Protocol 6. IP Address 7. Routing 8. IP Version 6 9. Transmission Control Protocol 10. User Datagram Protocol 11. Domain Name System 12. Telnet 13. File Transfer Protocol 14. Hypertext Transfer Protocol 15. Email 16. Forums 17. Lightweight Directory Access Protocol A. CISCO Routers 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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image