public function serviceWeb($url, &$err_code, &$output)
{
// Sequence validation
$this->ensureIsProxy();
$this->ensureAuthenticationCallSuccessful();
// Argument validation
if (gettype($url) != 'string') {
throw new CAS_TypeMismatchException($url, '$url', 'string');
}
try {
$service = $this->getProxiedService(PHPCAS_PROXIED_SERVICE_HTTP_GET);
$service->setUrl($url);
$service->send();
$output = $service->getResponseBody();
$err_code = PHPCAS_SERVICE_OK;
return true;
} catch (CAS_ProxyTicketException $e) {
$err_code = $e->getCode();
$output = $e->getMessage();
return false;
} catch (CAS_ProxiedService_Exception $e) {
$lang = $this->getLangObj();
$output = sprintf($lang->getServiceUnavailable(), $url, $e->getMessage());
$err_code = PHPCAS_SERVICE_NOT_AVAILABLE;
return false;
}
}