Logging into site and maintaining session?

Giganews Newsgroups
Subject: Logging into site and maintaining session?
Posted by:  ielite (ieli…@yahoo.net)
Date: Fri, 29 Apr 2005

Using Delphi 7 and Indy 10

I am trying to login to a site I am a member of and maintain a session. Can
anyone help me.

Below is a snipplet of the html of the login page:

How do i use TidHTTP (delphi) to login to this page, and retrieve the html
of the page after login?
(I have tried all kinds of ways)

Thanks

IELite

<HTML>
<HEAD>
<TITLE> My Page - Login</TITLE>
</HEAD>
<BODY>
<FORM id=frmLogin name=frmLogin
                action=default.aspx?RESET=Y&amp;
redir=http%3a%2f%2fwww.GeoCaching.com%2fDefault.aspx
                method=post><INPUT type=hidden
value=dDw0OTk2MTk7dDxwPGw8TG9naW4uUmVkaXJlY3Q7PjtsPGh0dHA6Ly93d3cuZ2VvY2FjaGluZy5jb20vRGVmYXVsdC5hc3B4Oz4+O2w8aTwwPjs+O2w8dDw7bDxpPDE+O2k8Mz47aTw2Pjs+O2w8dDxwPHA8bDxUZXh0Oz47bDx5b3UgYXJlIG5vdCBsb2dnZWQgaW4uOz4+Oz47Oz47dDxwPHA8bDxOYXZpZ2F0ZVVybDtUZXh0Oz47bDxodHRwOi8vd3d3Lmdlb2NhY2hpbmcuY29tL2xvZ2luL2RlZmF1bHQuYXNweD9SRVNFVD1ZJnJlZGlyPWh0dHAlM2ElMmYlMmZ3d3cuZ2VvY2FjaGluZy5jb20lMmZsb2dpbiUyZmRlZmF1bHQuYXNweCUzZlJFU0VUJTNkWSUyNnJlZGlyJTNkaHR0cCUyNTNhJTI1MmYlMjUyZnd3dy5nZW9jYWNoaW5nLmNvbSUyNTJmRGVmYXVsdC5hc3B4O1w8Rk9OVCBjb2xvcj0iI0ZGRkYwMCJcPmxvZyBpblw8L0ZPTlRcPjs+Pjs+Ozs+O3Q8O2w8aTwwPjs+O2w8dDxwPHA8bDxJbWFnZVVybDs+O2w8L2ltYWdlcy9uYXYvbG9nb19zdWIuZ2lmOz4+Oz47Oz47Pj47Pj47Pj47bDxjb29raWU7Pj46wf8LRl35/l7foX5zy+tgotWI2g==
                name=__VIEWSTATE>
                  Username:
                  <INPUT  id=myUsername style="WIDTH: 120px" maxLength=50
name=myUsername size="20">
                  Password:
                  <INPUT id=myPassword style="WIDTH: 120px" type=password
maxLength=50 name=myPassword size="20">
                  <INPUT id=Button1  type=submit value=Login
name=Button1></P>
                  <P><SPAN
                  style="FONT-SIZE: x-small; FONT-FAMILY: Verdana">
                  <INPUT
                  id=cookie type=checkbox name=cookie value="ON">
                  <LABEL for=cookie>Remember me (requires cookies) </LABEL>
                </FORM>
</BODY>
</HTML>

Replies