| View previous topic :: View next topic |
| Author |
Message |
MikeG
Joined: 23 Apr 2004 Posts: 34 Location: Adelaide, South Australia
|
Posted: Wed Dec 22, 2004 11:22 pm Post subject: URLDownloadToFile to NOT use cache |
|
|
I would like a way to force re-download of URL every time, rather than retrieving from the cache. I have tried the "fake cgi parameter" method suggested in the help but it does not work for my application.
What I am trying to do is monitor a D-link router by downloading and reading it's status page every 60 seconds. Once the page has been downloaded the first time it never updates because the cached one is used.
Perhaps another parameter could be added to the command?
eg. URLDownloadToFile, URL, Filename [,NoCache] |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Dec 24, 2004 4:30 am Post subject: |
|
|
| Thanks, it's a good idea; but it might be a while since I'm backlogged with other tasks on the to-do list. You might try a command line utility such as WGet or CURL (not sure if I have the names correct). |
|
| Back to top |
|
 |
MikeG
Joined: 23 Apr 2004 Posts: 34 Location: Adelaide, South Australia
|
Posted: Mon Jan 17, 2005 1:56 am Post subject: cURL works, but... |
|
|
Thanks Chris,
I have managed to get it working by using cURL. However it would be preferable to me if I could use URLDownloadToFile, as I like my scripts to be entirely "self-contained" where possible. I'd appreciate it if you could keep this on the To-Do list  |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Mon Jan 17, 2005 3:02 am Post subject: |
|
|
| Actually, URLDownloadToFile is not "self-contained"... I don't use it on my system, because I've scalpeled out Internet Explorer, removing various "features" *cough*bugs*cough* from my system, including this command. If you really want it to be self-contained, you could re-code it yourself using code from one of the aforementioned tools (if you have the know-how). And anyway, a script that isn't entirely self-contained isn't that bad, and sometimes it's actually better, as long as you don't plan to distribute. |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Mon Jan 17, 2005 8:53 am Post subject: |
|
|
| Quote: | -C on/off
--cache=on/off
When set to off, disable server-side cache. In this case, Wget will send the remote server an appropriate directive (Pragma: no-cache) to get the file from the remote service, rather than returning the cached version. This is especially useful for retrieving and flushing out-of-date documents on proxy servers.
Caching is allowed by default. |
|
|
| Back to top |
|
 |
|