| View previous topic :: View next topic |
| Author |
Message |
user@domain.invalid Guest
|
Posted: Sat Sep 17, 2005 5:29 pm Post subject: Auto form filling / URL clicking? |
|
|
Hello,
I am new to delphi. And I wanted to write a program to auto clicking a url, choosing option and
pressing a "ok" button on a web page. Is there anyway to do it with Delphi?
I'm not sure is this the write group to post such as question. If not, please point me to a right
direction.
Thanks ~~~
|
|
| Back to top |
|
 |
Ben Hochstrasser Guest
|
Posted: Sat Sep 17, 2005 6:56 pm Post subject: Re: Auto form filling / URL clicking? |
|
|
wrote:
| Quote: | I am new to delphi. And I wanted to write a program to auto clicking
a url, choosing option and
pressing a "ok" button on a web page. Is there anyway to do it with
Delphi?
|
No need to point and click, programmatically.
All you need to do is to issue a POST with a http client component to send
the correct data to the server.
Run a sniffer (eg ethereal) and watch the traffic between your browser and
the server. The interesting bit comes when you hit "OK" on your browser.
--
Ben
|
|
| Back to top |
|
 |
Francois PIETTE [ICS - Mi Guest
|
Posted: Sat Sep 17, 2005 7:40 pm Post subject: Re: Auto form filling / URL clicking? |
|
|
| Quote: | I am new to delphi. And I wanted to write a program to auto clicking
a url, choosing option and pressing a "ok" button on a web page.
Is there anyway to do it with Delphi?
|
No need to auto click. Just use a HTTP client component to "get" a webpage.
Here is simple code you can write using ICS ([url]http://www.overbyte.be):[/url]
HttpCli1.URL := 'http://www.borland.com';
HttpCli1.RcvdStream := TFileStream.Create('borland.html', fmCreate);
HttpCli1.Get;
if HttpCli1.StatusCode <> 200 then
ShowMessage(HttpCli1.ReasonPhrase);
HttpCli1.RcvdStream.Pos := 0;
Memo1.Lines.LoadFromStream(HttpCli1.RcvdStream);
HttpCli1.RcvdStream.Free;
ICS is freeware and included with Delphi on the companion CD. You can
download it from http://www.overbyte.be
--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[email]francois.piette (AT) overbyte (DOT) be[/email]
The author for the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
|
|
| Back to top |
|
 |
user@domain.invalid Guest
|
Posted: Mon Sep 19, 2005 2:15 pm Post subject: Re: Auto form filling / URL clicking? |
|
|
But the page is a HTTPS page with .asp.
Would this method still work? I really needed a program to do the clicking and filling for me,
because there is quit a bit of clicking... [some guy decided a batch job is not necessary... ;( ]
Thanks again :)
Ben Hochstrasser wrote:
| Quote: | wrote:
I am new to delphi. And I wanted to write a program to auto clicking
a url, choosing option and
pressing a "ok" button on a web page. Is there anyway to do it with
Delphi?
No need to point and click, programmatically.
All you need to do is to issue a POST with a http client component to send
the correct data to the server.
Run a sniffer (eg ethereal) and watch the traffic between your browser and
the server. The interesting bit comes when you hit "OK" on your browser.
|
|
|
| Back to top |
|
 |
|