Flash to download XML file and saving in harddrive

Hello

I´m have to build a Flash aplication, that has to download a XML from a differente server and save on it´s own server, at a predefined time of the day.

Is it possible ans safe to make that in flash using AS3?

thanks