I don’t get any error or any effect from this curl command:

curl http://localhost:8983/solr/update?commit=true --data-binary '
<delete><query>sku:td-01</query></delete>'

But, if I add the xml header, it works fine:

curl http://localhost:8983/solr/update?commit=true -H "Content-Type: 
application/xml" --data-binary '
<delete><query>sku:td-01</query></delete>'

It would be nice if Solr would default to application/xml, but a friendly error 
return would be better than a no-op in this case.

FWIW, curl –v shows this header being sent if I don’t specify it explicitly:

    Content-Type: application/x-www-form-urlencoded

-- Jack Krupansky

Reply via email to