how to run curl with CrouchDB ?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

how to run curl with CrouchDB ?

Post by gautamz07 »

Hey guys , i was just playing around with CrouchDB and basically installed it from the following link:

http://couchdb.apache.org/#download

i am running crouchDB on win7 .

now i want to do one simple tasks, I.E. create a database using curl. I am basically following this tutorial http://guide.couchdb.org/editions/1/en/tour.html . but how do i run curl with crouch. Sounds simplistic i know, but to me its kind of daunting , can somebody guide me please.

Thanks.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: how to run curl with CrouchDB ?

Post by Celauran »

Run cURL however you normally would. Call it from the command line, or from within a PHP script, or a Bash script, or wherever.
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: how to run curl with CrouchDB ?

Post by gautamz07 »

was just reading this thread http://stackoverflow.com/questions/9507 ... -a-windows , if you see the secound answer, the last line says .
Finally, you can copy curl.exe into %windir% and it should become available on the command line.
What does that mean
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: how to run curl with CrouchDB ?

Post by Celauran »

I'd imagine it's the Windows system directory, which will vary slightly by version. I believe it's typically C:\Windows, but I haven't touched Windows in forever so don't quote me on it. Anywhere in your path should do.
Post Reply