microsoft/mdatp-xplat

downloading mde_installer.sh file with the file creation timestamp

xender69 opened this issue · 1 comments

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.

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