BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Auto form filling / URL clicking?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
user@domain.invalid
Guest





PostPosted: Sat Sep 17, 2005 5:29 pm    Post subject: Auto form filling / URL clicking? Reply with quote



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 ~~~
Smile
Back to top
Ben Hochstrasser
Guest





PostPosted: Sat Sep 17, 2005 6:56 pm    Post subject: Re: Auto form filling / URL clicking? Reply with quote



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





PostPosted: Sat Sep 17, 2005 7:40 pm    Post subject: Re: Auto form filling / URL clicking? Reply with quote



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





PostPosted: Mon Sep 19, 2005 2:15 pm    Post subject: Re: Auto form filling / URL clicking? Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.