Max Kipness Posted June 16, 2008 Share Posted June 16, 2008 I've got a program that needs to download an xml file from http://rss.cnn.com/services/podcasting/newscast/rss.xml. I'm using inetget in this fashion:$dl_success1 = InetGet("http://rss.cnn.com/services/podcasting/newscast/rss.xml",@ScriptDir & "\" & "test" & ".xml",1)It seems like it used to work, but now I'm getting the same file over and over from 6/11/08. If I download this file manually using PHP and wget it shows the correct file from today 6/16/08. If I use IE 7 directly, I get the correct file from today, 6/16/08. But if I run the AutoIT script with the above command, the file has contents pointing to 6/11/08.Is this being cached somehow? If so, where? Does adding the 1 possibly not work and it's not trying to get a new version? I've tried rebooting, deleting temp files/cache from IE, etc.Any help would be appreciated.Thanks,Max Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 16, 2008 Share Posted June 16, 2008 I'm not sure what is wrong with that, but you could try manually connecting to the server using TCP functions if you have to. Link to comment Share on other sites More sharing options...
WinniK Posted August 23, 2011 Share Posted August 23, 2011 (edited) Hello, I have the same problem. If I'm trying to download an updated TXT-File I get only the old content. That's strange because I'm using the "options 1" (Forces a reload from the remote site). Is there a way to get the actual updated file without using TCP? $myURL = "" $DownloadedFile = "" $hDownload = InetGet($myURL, $DownloadedFile, 1, 1) Do Sleep(250) Until InetGetInfo($hDownload, 2) InetClose($hDownload) $File = FileOpen($DownloadedFile) $Content = FileRead($File) FileClose($File) ConsoleWrite($Content & @CRLF) Edited August 23, 2011 by WinniK Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now