Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. CouchDB Basics > HTTP Operations

HTTP Operations

All of your interactions with CouchDB will be through HTTP. HTTP is an open standard that is well-defined and well-represented. It is also very simple and straightforward in nature. We don’t need to go into the details of HTTP, but we can look at some of the key details.

The main element of HTTP is the method. Most people are familiar with the GET, POST, and PUT if they have done any kind of web programming, but there are a few other operations such as HEAD and DELETE that are useful when talking to CouchDB. With CouchDB, most of them have significance in the operation and their functionality:

GET

Request the specified database, document, design document, or other object or functionality. As with normal HTTP requests, the format of the URL defines what is returned. With CouchDB, this can include static items, database documents, and configuration and statistical information. In most cases, the information is returned in the form of a JSON document.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint