Canceling while downloading

Giganews Newsgroups
Subject: Canceling while downloading
Posted by:  Don (ehel…
Date: Fri, 19 Dec 2003

When I used TNMHTTP, it was able to cancel while downloading clicking a
button "Stop."
Now I am using TIdHTTP, and it does not allow me to click the Stop button.
The entire application is frozen while it is downloading. I can only click
ths Stop button after it finishes downloading. I am sure I am doing
something wrong. Anybody can help me?
The code is:
  fstream:=TFileStream.create(savefname, fmcreate);
    IdHTTP1.Get(URL, fstream);