https url connection and form based authentication

Hello,

Hope you can help me here. I need to make https URL connection from java class to a servlet. I am able to make the connection but all I am getting is the html of the login page (the servlet is a protected resource).

Do you know how can I programatically by pass the login page and then access the functionality.

I tried sending the user-id and password as query parameters, but it didn't work.

Thanks in advance.

Prasad.

[466 byte] By [kvprasad] at [2007-9-30 19:30:58]
# 1

Are you using HTTP "GET" while opeining the URL connection to your login page? Please check whether your login page accepts "POST" or "GET". I have posted some sample in the below thread, please check that.

http://forum.java.sun.com/thread.jsp?forum=2&thread=559938&tstart=0&trange=15

Good luck.

chvmurali at 2007-7-6 23:45:10 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...