Drupal http request

1. Drupal uses stream_context_create to make http request
2. To disable ssl verification you can do following for example,

$response = drupal_http_request($request_uri, array(    'context' => stream_context_create(array('ssl' => ['verify_peer' => FALSE, 'verify_peer_name' => FALSE])),));

Comments

Popular posts from this blog

Programatically create layout builder section in Drupal

Code quality analysis of Drupal. Can I use Sonar?

Set up Drupal7 to Drupal8 migration in simple steps (using Drush)