Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help for Authenticating a servlet

 
lokesh reddy
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I have written a servlet, and applied BASIC authentication on it, so whenever any one tries to access it, it asks the username and password to authenticate the users.
Now, the problem is, i would like to access the servlet using URLConnection class, and i am not able to know how to pass the username and password to servlet using URLConnection.
Please help me.
Thanks in Advance.
Loke.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic