On Wed, May 16, 2012 at 4:10 PM, rjain15 <rjai...@gmail.com> wrote: > Hi > > Firstly, apologies for the long post, I changed the quote to double quote > (and sometimes it is messy copying from DOS windows) > > Here is the command and the output on the Jetty Server Window. I am > highlighting some important pieces, > I have enabled the LOG LEVEL to DEBUG on the JETTY window. > > C:\Tools\Solr\apache-solr-4.0-2012-05-15_08-20-37\example\exampledocs>C:\tools\curl\curl > "http://localhost:8983/solr/update?commit=true" --data-binary @books.js > on -H 'Content-type:application/json'
> May 16, 2012 4:05:49 PM org.apache.solr.update.processor.LogUpdateProcessor > finish > INFO: [collection1] webapp=/solr path=/update params={commit=true&[ > { > "id" : "978-0641723445", There ya go - what should be the body of the post is in fact used as a very large parameter name. I get this behavior when I leave off the -H 'Content-type:application/json' when trying this on UNIX. This means that your content-type is not being set correctly by your curl command. Did you try changing those single quotes to double quotes at the end? C:\Tools\Solr\apache-solr-4.0-2012-05-15_08-20-37\example\exampledocs>C:\tools\curl\curl "http://localhost:8983/solr/update?commit=true" --data-binary @books.js -H "Content-type:application/json" -Yonik http://lucidimagination.com