libs/PHPCrawler.class.php
public function addBasicAuthentication($url_regex, $username, $password)
  {
    return $this->UserSendDataCache->addBasicAuthentication($url_regex, $username, $password);
  }
public function addBasicAuthentication($url_regex, $username, $password)
  {
    return $this->UserSendDataCache->addBasicAuthentication($url_regex, $username, $password);
  }
Adds a basic-authentication (username and password) to the list of basic authentications that will be send with requests.

Example:
<code>
$crawler->addBasicAuthentication("#http://www\.foo\.com/protected_path/#", "myusername", "mypasswd");
</code>
This lets the crawler send the authentication "myusername/mypasswd" with every request for content placed
in the path "protected_path" on the host "www.foo.com".

@param string $url_regex Regular-expression defining the URL(s) the authentication should be send to.
@param string $username  The username
@param string $password  The password

@return bool

@section 10 Other settings