Delphi Multi Thread with IDHTTP

Posted on 2008-11-14
Medium Priority
Last Modified: 2013-11-23
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


and paste the url found in TMemo2.

Make it Simple Please.

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

Question by:Clubreseau
LVL 26

Accepted Solution

Russell Libby earned 252 total points
ID: 22965472
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:

download area:

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


LVL 17

Assisted Solution

TheRealLoki earned 252 total points
ID: 22971997
have a look at my indy HTTP Multi file downloader demo (full source)

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question