Downloading a file through http:

  • Thread starter Thread starter UJ
  • Start date Start date
U

UJ

I have a system that goes out to the internet and grabs a file off of our
server. The name of the file is Downloadlist.txt. This file contains a list
of files that the system should download from the server to do it's updates.
The file name never changes. Problem is if a customer is using this system
and they have a content cache server, it will not get the most current file
because the file name is the same.

So what I want to propose is go out and get Downloadlist*.txt. But it's
doing it through http: (At least I think it is) and I don't know how to do
wild cards to make it do the update.

Can you do wildcards on an http: request?

TIA - Jeffrey.
 
You can't use the wildcard in the way you want to, but I think a
simpler solution would be to have an aspx page that contains the file
list, then you can control the cache on the page. The page itself can
get the data from the .txt file on the server side. This will give you
much more control.

-Visar Gashi (MCP)
 
How would I go about doing this? I can get create a web page that would have
the list of files that would need to be downloaded - but then what would I
do on the client side?
 
UJ said:
How would I go about doing this? I can get create a web page that
would have the list of files that would need to be downloaded - but
then what would I do on the client side?

Sticking with your original approach, configuring IIS so the text file
becomes non-cacheable should help.

Cheers,
 
Real problem is people having caching server at the other end that we have
no control over.
 
UJ said:
Real problem is people having caching server at the other end that we
have no control over.

If a cache doesn't honor Cache-Control headers, it's broken.

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top