vbscript: xml give me the old result when i refresh the result to new
This code is to view the content of the file in the ftp but when i delete the file and upload file with the same name with different in the content it will gave my the old content
1 2 3 4 5 6 |
URL = "ftp://ftp.example.com/kll.vbs" Set xml = CreateObject("Microsoft.XMLHTTP") xml.Open "GET", URL, False, "Yourusername", "Yourpassword" xml.Send ss= xml.responsetext WScript.Echo (ss) |
It could be that the data is cached and if your URL doesn’t change, you get the old, cached data. Try adding a date / time parameter to your AJAX call:
1 |
objReq.open("GET", "[your url]?_t=" & Replace(CStr(CDbl(Now())), ".", ""), True) |