Hi all,

I can successfully get the <add> commands through using curl utility but when I try to use Apache's HttpClient's post method, then things start not working well.

The results come back with an error code of 200 even while the xml results that are streamed back has a status of 0. At the colr jar execution the console reads

Apr 4, 2006 12:14:16 AM org.apache.solr.core.SolrCore update
INFO: add 0 125.

The only relevant code that I changed from the apache sample
http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/httpclient/trunk/src/examples/PostXML.java?rev=155418&view=markup

was
       post.setRequestHeader("Content-type", "image/jpeg");
       post.setRequestHeader("Content-transfer-encoding", "binary");


Can someone point me to sample set of http post call for adding to the index? Thanks in advance.

-sam


Reply via email to