forked from Wavyzz/dolibarr
New: Add a page on performance advice
This commit is contained in:
@@ -83,7 +83,7 @@ function getURLContent($url,$postorget='GET',$param='')
|
||||
$rep['content']=$response;
|
||||
$rep['curl_error_no']='';
|
||||
$rep['curl_error_msg']='';
|
||||
|
||||
|
||||
dol_syslog("getURLContent response=".$response);
|
||||
|
||||
if (curl_errno($ch))
|
||||
@@ -96,7 +96,10 @@ function getURLContent($url,$postorget='GET',$param='')
|
||||
}
|
||||
else
|
||||
{
|
||||
//closing the curl
|
||||
$info = curl_getinfo($ch);
|
||||
$rep['header_size']=$info['header_size'];
|
||||
|
||||
//closing the curl
|
||||
curl_close($ch);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user