[EMAIL PROTECTED] wrote:
In a message dated 1/15/2006 7:59:37 P.M. Eastern Standard Time,
[EMAIL PROTECTED] writes:
Does the server use the J2EE form-based authentication or some sort of
home-grown authentication model?
I do not know how to find out the answer to this question. Should I attempt
to contact the site's webmaster or other technical person? Is there a less
obtrusive way?
No need. The J2EE form-based authentication assumes the username and
password fields be called j_username and j_password. Apparently the site
does not use the J2EE form-based authentication.
Are you sure you got the parameter names ('username' and 'password' in
your code sample) right? They are certainly wrong if the J2EE form-based
authentication is being used
Yes, the parameter names are right. The following html from the site's
Logon page shows name="username" and password="password"
<table width="100%" border="0" cellpadding="0" cellspacing="0"
id="dataEntryShort">
<tr>
<th colspan="2" align="left">Enter Logon Information</th>
</tr>
<tr>
<td width="17%"><label for="UserName">User Name:</label></td>
<td width="83%"><input type="text" name="username" id="UserName" />
</td>
</tr>
<tr>
<td><label for="Password">Password:</label></td>
<td><input type="password" name="password" id="Password" /></td>
</tr>
These are *all* required fields? You are sure you have not missed any
hidden fields or some such sort?
The very last thing I can think of is trying to masquerade HttpClient
as a popular browser such as IE or Firefox. See the HttpClient
troubleshooting guide for details
http://jakarta.apache.org/commons/httpclient/troubleshooting.html
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]