/** * Prepares the request authentication based on Url components (username:password) * * @param mixed $url */ protected function prepareUserAuth($url) { if (!$url instanceof Url) { $url = new Url($url); } if ($url->getUser()) { $authListener = new BasicAuthListener($url->getUser(), $url->getPassword()); $this->httpBrowser->setListener($authListener); } }