I am writing a crawler to download webpages but some pages are protected with username/password.
I am trying to use the authenticator to gain access to thoes pages provided with my username/password,but failed
here is my code below
and part of code from my crawler
I noticed by the result that only "MyMinningAuthenticator!!!" is printing out, but not the String "getPasswordAuthentication!!!"
is that means the protected method in MyMinningAuthenticatior is not running.