browser.setUrl( originalLoginUrl );
}else{
try{
final HTTPAuthHelper this_sniffer = sniffer =
new HTTPAuthHelper( new URL( originalLoginUrl ));
this_sniffer.addListener(
new HTTPAuthHelperListener()
{
public void
cookieFound(
HTTPAuthHelper helper,
String cookie_name,
String cookie_value )
{
if ( helper == this_sniffer ){
foundCookies( cookie_name + "=" + cookie_value, false );
}
}
});
this_sniffer.start();
String str = originalLoginUrl.toString();
int pos = str.indexOf( "://" );