This has happened many times for me. PowerShell parser (who knows why) remove quotes in json.
Thus, it sends it to curl as '{source: http: // user: password@siteA.com : 5984 / main, target: main}' You need to call it like this:
curl -X POST -d '{"""source""":"""http://user: password@siteA.com :5984/main""","""target""":"""main"""}' -H 'Content-Type: application/json' http://user: password@siteB.com /_replicate
See the http://pscx.codeplex.com/ module. EchoArgs can help detect such problems.
source share