Delphi Multi Thread with IDHTTP

Posted on 2008-11-14
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

    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

    have a look at my indy HTTP Multi file downloader demo (full source)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    758 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now