Title: Please help. Accessing protected url from java when using form based authentication

I need to access a protected resource on my web site from java. I use form based authentication and I was hoping that following sequence will make it but it dos not

1. Open url to protected resource. get JSESSIONID from headers
2. Post to /mycontext/login/j_security_check with cookie set to JSESSIONID=<session id from prev step> and name and password as POST parameters

3. Access protected resource again using the same session id

Any help is greatly appreciated

Alex

Reply via email to