All you need to do is use the parameter softCommit
(camel case), this would solve the problem. A sample request would be:
curl http://localhost:8983/solr/collection1/update?softCommit=true -H "Content-Type: text/xml" --data-binary '<add><doc><field name="id">testdoc2</field></doc></add>'
it could be used after documents are added just to commit what isn't commited yet as you tried but using camel case softCommit boolean parameter.
From documentation:
softCommit
="true"
|"false"
- default isfalse
- perform a soft commit - this will refresh the 'view' of the index in a more performant manner, but without "on-disk" guarantees. Solr (!) 4.0