RE: I'm using PHP curl post xml command to Solr,Is it the only way to post data?

2007-06-26 Thread Kijiji Xu, Ping
I had solved this problem,below is my POST code,I used HTTP_Request of PEAR,it’s so simple.thank you all very much .FYI; private function doPost($url,$postData){ $req = new HTTP_Request($url,array( 'method' = HTTP_REQUEST_METHOD_POST, 'http' =

Re: I'm using PHP curl post xml command to Solr,Is it the only way to post data?

2007-06-26 Thread James liu
how about its performance? 2007/6/26, Kijiji Xu, Ping [EMAIL PROTECTED]: I had solved this problem,below is my POST code,I used HTTP_Request of PEAR,it's so simple.thank you all very much .FYI; private function doPost($url,$postData){ $req = new HTTP_Request($url,array(

RE: I'm using PHP curl post xml command to Solr,Is it the only way to post data?

2007-06-26 Thread Kijiji Xu, Ping
Ya,it cost 20-30ms per every update 1 doc operation(add,delete command) ,but not commit. So, I think it'a all right -Original Message- From: James liu [mailto:[EMAIL PROTECTED] Sent: 2007年6月27日 9:39 To: solr-user@lucene.apache.org Subject: Re: I'm using PHP curl post xml command to

Re: I'm using PHP curl post xml command to Solr,Is it the only way to post data?

2007-06-25 Thread Michael Kimsal
Using PHP5 (5.1 or higher I think) http://us.php.net/manual/en/function.http-post-fields.php is available. From the example on that page: $fields = array( 'name' = 'mike', 'pass' = 'passwordt' ); $response = http_post_fields(http://www.example.com/;, $fields); Looks pretty simple, but

Re: I'm using PHP curl post xml command to Solr,Is it the only way to post data?

2007-06-25 Thread Tristan Vittorio
Rather than re-inventing the wheel with fsockopen, why don't you use an existing HTTP client implementation written in PHP: http://pear.php.net/package/HTTP_Client http://framework.zend.com/manual/en/zend.http.html http://scripts.incutio.com/httpclient/