When i try to refresh the page with this code the result is:
Exception in SoapClientAuth.php line 129: Error
In the line 129 there is bold line below:
if (($info = curl_getinfo($ch)) && $info['http_code'] == 200) {
return $response;
}
else {
if ($info['http_code'] == 401) {
throw new \Exception ('Access Denied', 401);
}
else {
if (curl_errno($ch) != 0) {
throw new \Exception(curl_error($ch), curl_errno($ch));
}
else {
throw new \Exception('Error', $info['http_code']);
}
I can read only with this general function
$a = $sp->query('label')->get();
My problem is an generic error, i think.
`$sp = new SharePointAPI('username', 'password', 'sharepoint site', 'NTLM');
return $a; `
When i try to refresh the page with this code the result is: Exception in SoapClientAuth.php line 129: Error
In the line 129 there is bold line below: if (($info = curl_getinfo($ch)) && $info['http_code'] == 200) { return $response; } else { if ($info['http_code'] == 401) { throw new \Exception ('Access Denied', 401); } else { if (curl_errno($ch) != 0) { throw new \Exception(curl_error($ch), curl_errno($ch)); } else { throw new \Exception('Error', $info['http_code']); }
I can read only with this general function $a = $sp->query('label')->get();
that return me a json data only
Am i doing wrong something?