Jump to content

Recommended Posts

Posted

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

  • 3 years later...
Posted (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 by WinniK

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...