in reply to FTP wtih Perl
You can setup a curl transfer to have a callback for every chunk transferred. There are a few tutorials on the net and at the libcurl homepage.