function http_request_use_curl in Feeds 7
Same name and namespace in other branches
- 8.2 libraries/http_request.inc \http_request_use_curl()
- 6 libraries/http_request.inc \http_request_use_curl()
- 7.2 libraries/http_request.inc \http_request_use_curl()
Decides if it's possible to use cURL or not.
Return value
TRUE if curl is available, FALSE otherwise.
1 call to http_request_use_curl()
- http_request_get in libraries/
http_request.inc - Get the content from the given URL.
File
- libraries/
http_request.inc, line 219 - Download via HTTP.
Code
function http_request_use_curl() {
$basedir = ini_get("open_basedir");
return function_exists('curl_init') && !ini_get('safe_mode') && empty($basedir);
}