How to get the time stamp of a file, that can be downloaded from HTTP server, using HTTP protocol? I am particularly interested in WinHttp functions, but any HTTP reference will do.
There is a time-stamp field in response-header, but that refers the time when the HTTP server responded, and not the file-time of the file.
To retrieve the creation/modified date-time of a file received over HTTP, there exists a field
Last-Modified
within the HTTP response header.As the documentation says:
WinHttp function to retrieve the header info is WinHttpQueryHeaders.