public function applyHttpBasicAuthForHost($hostname, $url)
{
// get the auth credentials
$credentials = $this->getHttpBasicAuthForHost($hostname);
if (isset($this->proxySession)) {
$this->proxySession->setHttpBasicAuth($hostname, $credentials['user'], $credentials['pass']);
}
// all done
return $url;
}