Jump to content

URLDownloadToFile?


Recommended Posts

Unless AT&T just picked up the crackpipe and my download skyrocked, I've got to be using a cached download (.76 second download?). I'm trying the fake cgi param trick, but it doesn't appear to be working.

Internet Explorer 3 or greater must be installed for this function to work. Firewalls or presence of multiple network adapters may cause this function to fail. Also, some websites may block such downloads.

The file is obtained from IE cache whenever possible. You might be able to force a (re)download from the internet by supplying a fake cgi parameter, for example: "http://.../test.exe?fakeParam=42"

URLDownloadToFile($download & "?fakeParam=42", $filename)

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

I don't know quite what it was, but I made some changes and now it works... the changes I made were all in error checking and QC... so who knows.

never mind. I have no clue why it's not downloading new everytime.

Edited by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

I love these conversations I have with myself. I decided that if IE is doing the caching, I need to trick IE better:

URLDownloadToFile($download & "?fakeparam=" & int(random(50)), $filename)

edit: Take that Microsoft!

Edited by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
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
 Share

  • Recently Browsing   0 members

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