I am trying to fetch and display the 'last-modification' of the file from my server using VBScript, It is successfully fetching the 'last-modified' details but the date and the time it fetched is wrong
Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
Set environmentVars = WScript.CreateObject("WScript.Shell").Environment("Process")
tempFolder = environmentVars("TEMP")
strURL = "http://testme.decentsms.com/gwbasic.rar"
strMethod = "GET"
objWinHttp.Open strMethod, strURL, False
objWinHttp.Send
GetDataFromURL = objWinHttp.GetResponseHeader("Last-Modified")
MsgBox GetDataFromURL
it fetch the following modified details,
Last-Modified: Mon 21 May 2012 20:06:51 GMT
while the actual file details are,
Tue 22 May 2012 1:06:51 GMT
I don't know what is wrong here, ? I'm not able to sort out the problem, is it because of the cache ?