delete all docs in Solr cause 400 bad request
I create a xml file 'cleanall.xml' with following contents:

    <?xml version="1.0" encoding="UTF-8"?>
    <delete><query>*:*</query></delete>
    <commit />

then issue following command:

    java -Durl=http://localhost:8080/solr/update -jar post.jar cleanall.xml

and it returns #400 bad request. But if I issue another command:

    java -Ddata=args -Dcommit=yes -Durl=http://localhost:8080/solr/update -jar post.jar "<delete><query>*:*</query></delete>"

then it runs ok. Doesn't post.jar allow specifying delete command in a xml file argument?

delete all docs in Solr cause 400 bad request
===

I create a xml file 'cleanall.xml' with following contents:

    <?xml version="1.0" encoding="UTF-8"?>
    <delete><query>*:*</query></delete>
    <commit />

then issue following command:

    java -Durl=http://localhost:8080/solr/update -jar post.jar cleanall.xml

and it returns #400 bad request. But if I issue another command:

    java -Ddata=args -Dcommit=yes -Durl=http://localhost:8080/solr/update -jar post.jar "<delete><query>*:*</query></delete>"

then it runs ok. Doesn't post.jar allow specifying delete command in a xml file argument?
