This will just work if allow_furl_open is enabled, see http://php.net/manual/en/filesystem.configuration.php ... Isn't there a helper function in drush (you might have discussed that)