Question

  Asked: Apr 10 2008   5:16 PM GMT
  Asked by: Domino Ask The Experts


Access a password protected URL using Java code


Lotus Domino server, Java, URL, Password protected, Authentication

I am trying to access a URL using the HttpURLConnection in Java code. The URL is password protected. I have to authenticate our Lotus Domino server for accessing before even attempting to access the URL. How do I authenticate my Lotus Domino server to access the password protected URL using the HttpURLConnection? Can anyone give me any suggestions and/or explainations to accomplish this with some sample Java code?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



For a secure connection use the 'HttpsURLConnection' instead (Notice the extra S after http) as this is the normal way connections for passwords are made. Then just submit your request.
Your request will mostlikely need username and password parameters set and it shhould then connect you.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Development and Security.

Looking for relevant Development Whitepapers? Visit the SearchWinDevelopment.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register