fix Mime type method (no HEAD http request)
This commit is contained in:
@@ -140,11 +140,12 @@ class ToolBox
|
||||
}
|
||||
else //Remote
|
||||
{
|
||||
//get_headers($sUrl, 1)
|
||||
$oCurl = curl_init($sPath);
|
||||
curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($oCurl, CURLOPT_FOLLOWLOCATION, true);
|
||||
curl_setopt($oCurl, CURLOPT_HEADER, true);
|
||||
curl_setopt($oCurl, CURLOPT_NOBODY, true);
|
||||
//curl_setopt($oCurl, CURLOPT_NOBODY, true);
|
||||
curl_setopt($oCurl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
|
||||
curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_exec($oCurl);
|
||||
|
||||
Reference in New Issue
Block a user