simple code to create local dump of an internet resource