Jump to content
Sign in to follow this  
Max Kipness

InetGet caching problem?

Recommended Posts

Max Kipness

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.



Share this post

Link to post
Share on other sites
Richard Robertson

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.

Share this post

Link to post
Share on other sites


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)
Until InetGetInfo($hDownload, 2)

$File = FileOpen($DownloadedFile)
$Content = FileRead($File)

ConsoleWrite($Content & @CRLF)
Edited by WinniK

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this