Skip to content

Instantly share code, notes, and snippets.

@vincenzo
Last active April 28, 2016 21:52
Show Gist options
  • Save vincenzo/0c97d2d38c36043d73c5494fcc2a04e7 to your computer and use it in GitHub Desktop.
Save vincenzo/0c97d2d38c36043d73c5494fcc2a04e7 to your computer and use it in GitHub Desktop.
Sample settings for cURL HTTP Request Drupal module
<?php
/**
* External access proxy settings:
*
* If your site must access the Internet via a web proxy then you can enter
* the proxy settings here. Currently only basic authentication is supported
* by using the username and password variables. The 'exceptions' variable
* is an array of host names to be accessed directly, not via proxy.
*/
// As of version 1.7, the following settings is no longer mandatory.
// When not specified, 'chr' will leverage Drupal proxy settings
// (see http://git.io/vU8Af) and use them for both HTTP and HTTPS.
$conf['http_proxy'] = array(
'server' => 'your.proxy.com',
'port' => '8080',
'username' => 'user',
'password' => 'pass',
'exceptions' => array('localhost'),
);
// As of version 1.7, the following it's assumed by default and
// you can omit this line. If you haven't set 'http_proxy', 'chr' will
// fall back on Drupal proxy settings and use the same settings
// for both HTTP and HTTPS.
$conf['https_proxy'] = $conf['http_proxy'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment