I cannot replicate between two couchdb servers, so I would like to dump to file from one server and load from file into the other server.
I used this statement to dump and it worked fine:
curl -X GET http://localhost:5984/<DATABASE_NAME>/_all_docs?include_docs=true > FILE.txt
But when I used this statement to load:
curl -d @FILE.txt -H “Content-Type: application/json” -X POST http://localhost:5984/<DATABASE_NAME>/_bulk_docs
it failed like this:
curl: (6) Could not resolve host: application; Host not found {"error":"bad_content_type","reason":"Content-Type must be application/json"}
Any ideas?