Mink - Goutte Driver cURL SSL error -


i using mink 1.4, using goutte driver.

i trying set form field values in page , click on button submits form.

but error

fatal error: uncaught exception 'guzzle\http\exception\curlexception' message ' in phar://c:/documents , settings/user/my documents/dropbox/kar_rental/inc/mink.phar/vendor/guzzle/guzzle/src/guzzle/http/curl/curlmulti.php on line 579  guzzle\http\exception\curlexception: [curl] 60: ssl certificate problem, verify ca cert ok... 

i assumed since set curlopt_ssl_verifypeer false, should not check ssl.

here code:

foreach ($this->_sites_data $site_name => $site_data) {     // instantiate mink's goutte driver     $clientoptions = array(         'curl.options' => array(             'curlopt_ssl_verifypeer' => false,             'curlopt_certinfo' => false,             'curlopt_timeout' => 120         ),         'ssl.certificate_authority' => 'system'     );  $client = new \behat\mink\driver\goutte\client(); $client->setclient(new \guzzle\http\client($site_data['form_data']['form_url'], $clientoptions));  $driver = new \behat\mink\driver\gouttedriver($client);  // initialize mink $session = new \behat\mink\session($driver);  // start session $session->start();  foreach ($site_data['form_data']['post_fields'] $days => $post_fields) {     // open form page     $session->visit($site_data['form_data']['form_url']);     $page = $session->getpage();      foreach ($post_fields $post_field_name => $post_field_value)     {         $el = $page->find('css', '#' . $post_field_name);         $el->setvalue($post_field_value);     }      $el = $page->find('css', $site_data['form_data']['submit_element_css']);     $el->click(); }  $session->reset(); 

}

disable ssl checks in goutte

in behat.yml file

goutte:       guzzle_parameters:            curl.options:               curlopt_ssl_verifypeer: false               curlopt_certinfo: false               curlopt_timeout: 120            ssl.certificate_authority: false 

if fails try this:

<?php use guzzle\http\client guzzleclient; $client = new \behat\mink\driver\goutte\client(); $gouttedriver = new \behat\mink\driver\gouttedriver(     $client ); $client->setclient(new guzzleclient('', array(      'curl.curlopt_ssl_verifypeer' => false,      'curl.curlopt_certinfo'       => false     )));  

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -