I was hoping someone could help me figure out how to get the response from an
http POST request when using a form-based submit in an HTML application (hta).

This may not even be the right approach... what I really need is to use an
hta to obtain a cookie from a website, and then use that cookie as
authentication on another website where I will submit data via another POST
request with XML content. Both sites are in the same domain.

This is my first complex hta and first time coding http requests, so I am
slightly confused:

How can I securely collect the logon credentials from the user, and submit
that to the first site, parse the response without opening a new window or
overwriting the current hta window, 'store' the cookie included with the
response, and then use that cookie to POST to the second site?

If I collect the user/password info using text boxes in a form, and use a
submit button, what object or property do I reference to obtain the response
and the cookie?

Won't the submit action from a form cause the hta window body to be
overwritten with the response?

ANd I have looked into using the XMLHTTP object, but can not seem to find
the reference API for the one INCLUDED with IE (I cant depend on the latest
version of MSXML being installed). Plus, if I go that route, I am confused
how I parse the login and password fields into the XMLHTTP.Send method.

Any help to me going in the right direction on this would be highly
appreciated. TIA.


Keith Jakobs