Search the Community
Showing results for tags 'couchdb'.
-
Hi all: I have a small problem with Curl syntax to send a POST to a CouchDB database. I want send this: -H Content-type: application/json -X POST http://127.0.0.1:5984/test -d {"title": "pencil"} but this code does not work: $code ='curl.exe -H Content-type: application/json -X POST http://127.0.0.1:5984/test -d {"title": "pencil"}' Run(@ComSpec & " /k " & $code,"",@SW_HIDE) but to work I have to format the line like this: $code = 'curl -H "Content-Type: application/json" -X POST "http://127.0.0.1:5984/test" -d "{\"title\":\"pencil\"}"' Run(@ComSpec & " /k " & $code,"",@SW_HIDE) my question is whether this is the most correct way to write the correct code using the additional signs " and \ or is there some other more elegant way to do the same. Thank's
-
Hey there, does somebody know a good REST or json or couchdb udf/ocx i could use to utilize iriscouch.com for example? I could not find any via the forum search, but maybe i searched with the wrong words. Best Regards, J.