in reply to xml stream

To get a file via HTTP(S?), use one of the LWP family of modules.

Philosophy can be made out of anything. Or less -- Jerry A. Fodor