protected function _vcl_get_probe($probeUrl)
{
$urlParts = parse_url($probeUrl);
if (empty($urlParts)) {
// Malformed URL
return '';
} else {
$tpl = <<<EOS
.probe = {
.request =
"GET {{probe_path}} HTTP/1.1"
"Host: {{probe_host}}"
"Connection: close";
}
EOS;
$vars = array('probe_host' => $urlParts['host'], 'probe_path' => $urlParts['path']);
return $this->_formatTemplate($tpl, $vars);
}
}