public function set_basic_auth($username, $password) {
		$value = 'Basic '.base64_encode($username.':'.$password);
		$this->set_header('Authorization', $value);
		return true;
	}
public function set_basic_auth($username, $password) {
		$value = 'Basic '.base64_encode($username.':'.$password);
		$this->set_header('Authorization', $value);
		return true;
	}
public function set_basic_auth ( $ username , $ password ) { $ value = 'Basic ' . base64_encode ( $ username . ':' . $ password ) ; $ this -> set_header ( 'Authorization' , $ value ) ; return true ; }
Set a basic auth header.

@param string $username The username to use.
@param string $password The password to use.
Set a basic auth header .