Hi Jerry,

this might become the longest-running thread in
the history of this mailing list :-)

> 1) GET the logon form (I have already done this)

Check.

> 2) "hold onto" the form while I insert the values for user id and password

There is nothing to be done to "hold onto" anything.
The server delivered the page and prepared the session.
If the client was a browser, the user might also take
several minutes to respond. The client does not keep
an open connection to send heartbeats or anything.

Just read the form, parse the HTML, then prepare and
submit the next request.

> 3) submit the form and follow the redirects as usual.

You will have to parse the HTML to extract the session
specific form values. I recommend a simple algorithm
based on standard Java regular expressions. Then cut
out the session specific values and prepare a POST
request with all required name/value pairs, as described
in the primer.

hope that helps,
  Roland


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

Reply via email to