O'Reilly logo

CouchDB and PHP Web Development Beginner's Guide by Tim Juravich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — checking that CouchDB is running

We are going to attempt to hit the CouchDB service on our machine by using the command line utility cURL (we'll spell it curl from here on out for the sake of simplicity) that allows you to make raw HTTP requests. curl is our main method of communication with CouchDB. Let's start with a curl statement to talk to CouchDB.

  1. Open Terminal.
  2. Run the following statement to create a request that will hit CouchDB:
    curl http://127.0.0.1:5984/
    
    
  3. Terminal will reply with the following:
    {"couchdb":"Welcome","version":"1.0.2"}
    
    

What just happened?

We just used curl to communicate with the CouchDB service by issuing a GET request. By default, curl will assume that we're trying to issue a GET request unless we tell ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required