how to click a web button from delphi application -


In my project, I am using my SMF forums to control customers so that I want to make that application By which I can add members to my forum through my admin panel, I can usually do 1.login on my site (with my admin user and pass)

2. Then on the URL Go

3. Navigate to the URL then

4. Fill the data Do not click on the Register button.

Here's a screen shot to add new members to understand easily

Ok I started coding and I was successful in the first 3 steps, but I have failed on the 4th step

That was what I used to use the HTM headers while in Firefox, which clicked the registration button manually clicked on it.

User = dssa and email = asdsa% 40ss.com and password = sadddsa and groups = 12 & amp; Email password = at & regSubmit = register & amp; Sa = register & amp; After this, I saw to see the page source as to which method of using its post method in the formatting

  & gt;   & Lt; Forms & gt; Verb = "http://www.myaction.com/index.php?action=regcenter" & gt; Method = "post" & gt; Accept-charset = "ISO-885 9-1" & gt; Name = "postform" id = "postforum" & gt;  

And to do this my code is

  started the first 3 steps; Str: = TStringList.Create; Str.Add ('user =' + bsskinedit1.text); Str.Add ('e-mail =' + bsskinedit1.Text+'@ss.com '); Str.Add ('password =' ​​+ bsskinedit2.Text); Str.Add ('group =' + group); Str.Add ('= EmailPassword at'); Str.Add ('regSubmit = Register'); Str.Add ('sa = register'); Str.Add ('scheduled c5efce4e867a83fa6915026342e4aa20'); S3: = IdHTTP1.Post ('http://www.mysite.com/index.php?action=regcenter',str); End;  

but do not add a new member: (

any praise of

thanks in advance

I would think that sc should include a dynamic cookie value that is set after login, so that Hard-code should not be used for this c5efce4e867a83fa6915026342e4aa20 , but instead your web-server will be set up after you log in as an administrator If you do not have sc by reading the value and after all subsequent requests, you can use TidCookieManager

You can try to read the actual cookie value by using

Comments