This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.