Delphi Multi Thread with IDHTTP

Im trying to download from a site all url in the page. with IDhttp. i know how to do it with out Thread adn its so long.

I want to do it with Multi Thread like download all url in the 4 site and at the same time.
My site are in Tmemo1

site1.com/page1.php
site2.com/page1.php
site3.com/page1.php
site4.com/page1.php

and paste the url found in TMemo2.

Make it Simple Please.

Thank you all of You and sorry for my english im French ! :D

ClubreseauAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Russell LibbySoftware Engineer, Advisory Commented:
Unless you are really dead set on using IDHttp, there are a few other alternatives for you. I have a component based on WinInet (the same library that Internet Explorer uses for downloading urls) that works very well. It runs async, so it does not block your UI thread. You can set any number of urls's to be downloaded, and the wininet library handles the thread management side of things; you only need to handle the event portion of the component. The downloads can be cancelled at any time, and you can also specify a timeout if you wish them to auto terminate after a set time. If you are interested:

example usage:
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_22735054.html

download area:
http://home.roadrunner.com/~rllibby/downloads/urldown.zip

let me know if you have any questions. (my french is a little rusty though)

Russell




0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TheRealLokiSenior DeveloperCommented:
have a look at my indy HTTP Multi file downloader demo (full source)
http://sourceforge.net/projects/internetdemos
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.