Re: ERROR on posting update request using CURL in php

2011-06-09 Thread Naveen
mand can we do it using post Regards Naveen -- View this message in context: http://lucene.472066.n3.nabble.com/ERROR-on-posting-update-request-using-CURL-in-php-tp3047312p3047372.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: ERROR on posting update request using CURL in php

2011-06-09 Thread Naveen Gupta
Hi, curl http://localhost:8983/solr/update?commit=true -H "Content-Type: text/xml" --data-binary 'testdoc' Regards Naveen On Fri, Jun 10, 2011 at 10:18 AM, Naveen Gupta wrote: > Hi > > This is my document > > in php > > $xmldoc = 'F_146 name="userid">74gmail.com name="attachment_size">121 nam

ERROR on posting update request using CURL in php

2011-06-09 Thread Naveen Gupta
Hi This is my document in php $xmldoc = 'F_14674gmail.com121sample.pptx'; $ch = curl_init("http://localhost:8080/solr/update";); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Co