how to download a remote file and save locally using macros

I’m new to libreoffice, kindly help me to download a remote file using URL and save it locally