clojure-clutch / clutch

A Clojure library for Apache CouchDB.
Other
225 stars 37 forks source link

how do i authenticate to _session? #74

Open boxxxie opened 11 years ago

boxxxie commented 11 years ago

i want to POST a form with name=myname&password=mypassword to /_session i want to get the cookie from the response as well.

any easy way to do this with clutch... i'm looking at http-client/couchdb-request as my solution right now...

boxxxie commented 11 years ago

trying to do this

(couchdb-request* "POST" "http://localhost:5984/_session" :data "name=paul&password=1" :content-type "application/x-www-form-urlencoded; charset=UTF-8")

getting back ; Evaluation aborted.