Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

[help] Access UserName/Password restrict WebPages!  RSS feed

 
wei liu
Ranch Hand
Posts: 35
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone,

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.


Thanks
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!