Drupal http request fails php56
From Do you speak Drupalish? Featured Drupal wiki-like documentation
Workaround
- This may be due to a change in PHP's SSL context options (for more information, see its changelog entry ). With this change, by default PHP 5.6 sets verify_peer to TRUE. This means that drupal_http_request requires additional options to connect using SSL when a self-signed (or otherwise invalid) certificate is in place.
- https://docs.acquia.com/articles/php-56-upgrades-generate-http-request-status-fails-messages
Steps
- Check
drush vget drupal_http_request_fails
Best choice core patch https://www.drupal.org/node/1081192#comment-10286513No need for my use case with drupal nodejs, fixed by Error opening socket ssl://mysite.com:443- How about making the SSL context options configurable via a variable?
- This makes it possible to do something like this in settings.php
$conf['drupal_ssl_context_options'] = array('verify_peer_name' => FALSE);
Issues drupal nodejs
- Doesn't work even with conf['drupal_http_request_fails'] = FALSE; and drush cc all with drupal nodejs
- Fixed with Error opening socket ssl://mysite.com:443