[Web4lib] creating a link that bypasses username and password page

David Kane DKANE at wit.ie
Fri Jul 7 08:13:16 EDT 2006


Hi John,

First, I am surprised that your provider does not support IP-based
authentication.  Ask them why.

As far as an immediate solution to your problem is concerned 2
possibilities come to mind.

1) Why don't you just try a GET request anyway, if you haven't already.
 You might actually get away with it.
2) Create a separate blank web page and link to that.  It will have a
hidden copy of the form which should take you to the page.  Use
JavaScript to submit the form automatically - leading the user to the
application seamlessly.  The process should take only a second for your
user, during which time you could possibly display to them a 'please
wait' message.  Use the HTML below.

<html>
<head>
</head>
<body onload="document.forms[0].submit();">
<table width="100%" height="100%"><tr><td valign="middle">
<p align="center"><h1>Please wait...</h1></p>
<form action="http://www.database.com/login.jsp" method="get">
<input type="hidden" name="username" value="GalwayLibrary02" />
<input type="hidden" name="password" value="X34pq9"/>
</form>
</td></tr></table>
</body>
</html>

Best regards,




More information about the Web4lib mailing list