microsoft / mdatp-xplat

Microsoft Defender for macOS/Linux - config samples, auxiliary tools
MIT License
187 stars 188 forks source link

downloading mde_installer.sh file with the file creation timestamp #109

Open xender69 opened 1 year ago

xender69 commented 1 year ago

hi guys,

As the title indicates, how can I download the install script with the time stamp of the file instead of the timestamp of the date that I downloaded. I tried using curl -R or wget -S but still the file is getting timestamped with the download date instead of the file creation date. Thank you.

anoliveiraM commented 6 months ago

You cannot do this as in order to do this the server which holds the file would have to set the header Last-Modified when sending the data, which it does not, but if it did you would download the file like so:

wget --timestamping https://raw.githubusercontent.com/microsoft/mdatp-xplat/master/linux/installation/mde_installer.sh or curl -R -O https://raw.githubusercontent.com/microsoft/mdatp-xplat/master/linux/installation/mde_installer.sh