AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

URLDownloadToFile to NOT use cache

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
MikeG



Joined: 23 Apr 2004
Posts: 34
Location: Adelaide, South Australia

PostPosted: Wed Dec 22, 2004 11:22 pm    Post subject: URLDownloadToFile to NOT use cache Reply with quote

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
View user's profile Send private message AIM Address
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Dec 24, 2004 4:30 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
MikeG



Joined: 23 Apr 2004
Posts: 34
Location: Adelaide, South Australia

PostPosted: Mon Jan 17, 2005 1:56 am    Post subject: cURL works, but... Reply with quote

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 Smile
Back to top
View user's profile Send private message AIM Address
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Mon Jan 17, 2005 3:02 am    Post subject: Reply with quote

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
View user's profile Send private message
BoBo
Guest





PostPosted: Mon Jan 17, 2005 8:53 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group