in reply to UrlDownloadToFile function

I don't know any UrlDownloadToFile function, but judging from the name, LWP::Simple's getstore might do what you want.