$ua->credentials(< 'servername:portnumber', 'realm-name', 'username' => 'password' );