Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building Web Services with Windows Azure (new)

You're reading from  Building Web Services with Windows Azure (new)

Product type Book
Published in May 2015
Publisher
ISBN-13 9781784398378
Pages 322 pages
Edition 1st Edition
Languages

Table of Contents (17) Chapters

Building Web Services with Microsoft Azure
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Introduction
Getting Started with the ASP.NET Web API Extending the ASP.NET Web API API Management Developing a Web API for Mobile Apps Connecting Applications with Microsoft Azure Service Bus Creating Hybrid Services Data Services in the Cloud – an Overview of ADO.NET and Entity Framework Data Services in the Cloud – Microsoft Azure Storage Data Services in the Cloud – NoSQL in Microsoft Azure Index

Content negotiation


Content negotiation is an HTTP technique to identify the "best available" response for a client request when multiple responses may be available on the server.

Note

The RFC 2616 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec12.html) specification for HTTP allows server-driven, agent-driven, and transparent negotiations. For the scope of this chapter, we focus on server-driven negotiations.

The negotiation between the client and the server is accomplished through a set of HTTP headers. These header fields are used by the client to express the desired content type or media type, this information is then used by the server to format the response in a way the client can understand:

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 $15.99/month. Cancel anytime}

Field

Description

Accept headers

These specify certain attributes that are acceptable for a response. These headers specify to the server the type of response expected. For example, Accept: application/json will expect a JSON response. Other Accept headers include Accept-Charset, Accept-Encoding...