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.
SCJP 1.6 in 2010
SCWCD5 in 2011
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop