// "<META HTTP-EQUIV=\"refresh\" content=\"5; URL=xxxxxxx>";
String[] tags = getTags( "META" );
for (int i=0;i<tags.length;i++){
String tag = tags[i];
String lc_tag = tag.toLowerCase();
int pos = lc_tag.indexOf("http-equiv=\"refresh\"");
int url_start = lc_tag.indexOf( "url=" );
if ( pos != -1 && url_start != -1 ){
url_start += 4;
int e1 = lc_tag.indexOf( "\"", url_start );
int e2 = lc_tag.indexOf( ">", url_start );
if ( e1 != -1 ){
e2 = e1;
try{
return( new URL(tag.substring(url_start, e2).trim()));
}catch( MalformedURLException e ){
Debug.printStackTrace( e );
}
}
}
}
return( null );