Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 2.0
Community Wiki and Resources
Download Couchbase Server 2.0
Couchbase Developer Guide 2.0
Client Libraries
Couchbase Server Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
8 Using the REST API
Chapter Sections
Chapters

8.2. HTTP Request Headers

You will use the following HTTP request headers when you create your request:

Table 8.1. REST API — Supported Request Headers

HeaderSupported ValuesDescription of UseRequired
AcceptComma-delimited list of media types or media type patterns.Indicates to the server what media type(s) this client is prepared to accept.Recommended
AuthorizationBasic plus username and password (per RFC 2617).Identifies the authorized user making this request.No, unless secured
Content-LengthBody Length (in bytes)Describes the size of the message body.Yes, on requests that contain a message body.
Content-TypeContent typeDescribes the representation and syntax of the request message body.Yes, on requests that contain a message body.
HostOrigin hostnameRequired to allow support of multiple origin hosts at a single IP address.All requests
X-YYYYY-Client-Specification-VersionStringDeclares the specification version of the YYYYY API that this client was programmed against.No