jaeksoft/opensearchserver-php-client

ability to add more CURLOPT

a4i opened this issue · 1 comments

a4i commented

Hi,

I need to add CURLOPT_SSL_VERIFYHOST to 0 to le curl client options, and maybe more.

Is it possible to add it or to allow Handler::init() to accept curl options ?

class Handler:

public function __construct(array $options = array(), array $curl_options= array()) {
...
$this->init($curl_options);
...
  protected function init($curl_options)
...
foreach($curl_option as $option=>$value) {
  $client->setOption( $option, $value);
}
$this->client = $client;
        $this->browser = new Browser($client);

regards

Hi,

I added this feature. Thank you.

Alexandre