in reply to File transfer template script
From your description, I think this is will do most of the work for you, you might still need a small perl wrapper around that, but definitely check out wget.
-Scott