Log message
This commit is contained in:
parent
c3e043d656
commit
ec27124e24
2 changed files with 2 additions and 1 deletions
|
|
@ -355,6 +355,7 @@ function getURLContent($url, $postorget = 'GET', $param = '', $followlocation =
|
|||
$rep['curl_error_msg'] = curl_error($ch);
|
||||
|
||||
dol_syslog("getURLContent response array is ".implode(',', $rep));
|
||||
|
||||
if (getDolGlobalInt('MAIN_CURL_DEBUG')) {
|
||||
dol_syslog("getURLContent curl_error_no=".$rep['curl_error_no']." curl_error_msg=".$rep['curl_error_msg'], LOG_DEBUG, 0, '_curl');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -472,7 +472,7 @@ class SecurityTest extends CommonClassTest
|
|||
$url = 'https://www.dolibarr.fr'; // This is a redirect 301 page
|
||||
$tmp = getURLContent($url, 'GET', '', 0); // We do NOT follow
|
||||
print __METHOD__." url=".$url."\n";
|
||||
$this->assertEquals(301, (empty($tmp['http_code']) ? 0 : $tmp['http_code']), 'Should GET url 301 response');
|
||||
$this->assertEquals(301, (empty($tmp['http_code']) ? 0 : $tmp['http_code']), 'Test getURLContent '.$url.' - Should GET url 301 response');
|
||||
|
||||
$url = 'https://www.dolibarr.fr'; // This is a redirect 301 page
|
||||
$tmp = getURLContent($url); // We DO follow a page with return 300 so result should be 200
|
||||
|
|
|
|||
Loading…
Reference in a new issue