Download of http no-xml files

I want ot use only automation control and C/AL to download files from http and save them to my local drive. The files to download are not XML files but .doc files …etc. Could someone show me a c/al example using xmlhttp or another control to reach this goal ? TIA,