48 throw new DomainException( __METHOD__ .
': curl (http://php.net/curl) is not installed, but' .
49 ' Http::$httpEngine is set to "curl"' );
52 if ( !isset(
$options[
'logger'] ) ) {
53 $options[
'logger'] = LoggerFactory::getInstance(
'http' );
61 throw new DomainException( __METHOD__ .
': allow_url_fopen ' .
62 'needs to be enabled for pure PHP http requests to ' .
63 'work. If possible, curl should be used instead. See ' .
64 'http://php.net/curl.'
69 throw new DomainException( __METHOD__ .
': The setting of Http::$httpEngine is not valid.' );
79 return function_exists(
'curl_init' ) ||
wfIniGetBool(
'allow_url_fopen' );
wfIniGetBool( $setting)
Safety wrapper around ini_get() for boolean settings.
MWHttpRequest implemented using internal curl compiled into PHP.
Various HTTP related functions.
This wrapper class will call out to curl (if available) or fallback to regular PHP if necessary for h...
Profiler base class that defines the interface and some trivial functionality.
static instance()
Singleton.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options