• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

[help] Access UserName/Password restrict WebPages!

 
Ranch Hand
Posts: 35
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic