You can using sockets to download the file and process it afterwards. Look around in scripting sites, there are plenty of examples of how this is done in snippets and addons.