Hi-
I am using...
WebClient Client = new WebClient ();
Client.DownloadFile(url, filename);
Or
Stream strm = Client.OpenRead (url);
But, the stream or file download, is not updated, several calls to url
retrive the same file. The file behind url is update each two seconds.
- How recover the most recent version of the file, in each call of
WebClient?
regards,
<ht />
Harvey Triana - 08 Feb 2008 18:10 GMT
Disculpas, este posting no era para este grupo en español.. Los afanes.
> Hi-
>
[quoted text clipped - 14 lines]
>
> <ht />
George Ter-Saakov - 08 Feb 2008 18:15 GMT
You have a caching problem.
do you have a proxy server between your computer and the server? Usually
they will cache files and return the same file for every request.
Nothing you can do about it except buying bottle of whisky and go to admins
of that proxy :)
George.
> Hi-
>
[quoted text clipped - 14 lines]
>
> <ht />
Harvey Triana - 08 Feb 2008 18:40 GMT
This trap works!
Stream r = wc.OpenRead(Url + "?t="+ DateTime.Now.Ticks.ToString());
Thanks
> You have a caching problem.
>
[quoted text clipped - 24 lines]
>>
>> <ht />
George Ter-Saakov - 08 Feb 2008 18:46 GMT
You right, forgot about that trick although using it myself :)
George.
> This trap works!
> Stream r = wc.OpenRead(Url + "?t="+ DateTime.Now.Ticks.ToString());
[quoted text clipped - 29 lines]
>>>
>>> <ht />