Meaningless Drivel is fun!*
The moose likes Sockets and Internet Protocols and the fly likes URLConnection and form based authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "URLConnection and form based authentication" Watch "URLConnection and form based authentication" New topic
Author

URLConnection and form based authentication

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
I cannot get this to work. It works for all other sites besides ones that have j_username & j_password. It always comes back to the login page. I see other messageboards via google that have the same problem, but there is no answer.

<form method="POST" action='/cpvs/login' >
<input type="hidden" name="auth" value="securid" />
<table border="0" cellspacing="5">
<tr>
<th align="right">Username:</th>
<td align="left"><input type="text" name="j_username"></td>
</tr>
<tr>
<th align="right">Password:</th>
<td align="left"><input type="password" name="j_password" ></td>
</tr>
<tr>
<td align="right"><input type="submit" value="Log In" name="login" ></td>
<td align="left"><input type="reset"></td>
</tr>
</table>
</form>
</div>
</center>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLConnection and form based authentication
 
Similar Threads
j_security_check - How Does It Verify Information
JAAS
redirect from external page to tomcat 4 with forms based authentication
JDBCUserRealm question
Login Window in Html page Apache style