Here is an example of command line that fit this description :
curl http://dumbdomain.com/solr/collection2/update/json -H \'Content-type:applic
An usual workaround in such cases is to put the data in a file and post.
$ cat post.json
{ "add": { "doc": { "uid": "79729", "text" : "I've got your number"} } }
And then invoke:
curl -H "Content-type:application/json" --data @post.json http://dumbdomain.com/solr/collection2/update/json
This would obviate the need of escaping any quotes in the json.