Hi Jeff,

this mailing list is not an HTML forum. You can find the details of
HTML forms in the spec: http://www.w3.org/TR/html4/interact/forms.html
My preferred resource for anything HTML or related is selfhtml, but
that is in german. There is also a french translation, but the english
translation is still in a very early stage: http://selfhtml.org/

Anyway, to get you started...

> <FORM action="/sso?cmd=LOGIN" method="POST" name="login">

The "POST" says that you should use PostMethod, not GetMethod.
You already figured that out. The action gives you the URL to
which you need to send the POST request. It starts with a /, so
it is path-absolute and server-relative. Take the protocol,
hostname and port number (if any) from your GetMethod and
substitute the path given in the action attribute.

>       <INPUT TYPE="hidden" NAME="auth_mode" VALUE="basic">
>       <INPUT maxLength=32 name=user size=13 value="">
>       <INPUT TYPE="button" onClick="formSubmit();" VALUE="Login">

Add name-value pairs to your PostMethod. The names are given in the
input tags, the values are either written there or you'd enter them
in the web form. Here you have:
name: auth_mode
value: basic
name: user
value: <what you would enter in the form>

The third input does not define a name-value pair because it doesn't
have a name.

> </FORM>               
> 
> function formSubmit() {
>  document.login.user.value = document.login.user.value.toUpperCase();
>  document.login.submit();
> }

Make sure the value for the "user" above is in UPPER CASE.

> Page info:
> 
> Server: Apache
> WWW-Authenticate: Basic realm="SCRealm"

This makes me wonder whether you need the form based login at all,
since it suggests basic authentication. Anyway, try it.

Make sure you use the same HttpClient object for both the initial
GetMethod and the subsequent PostMethod. There may be some cookies
sent back that are stored in the HttpClient.

hope that helps,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to