473,399 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Downloading a file through http:

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.
Nov 19 '05 #1
6 884
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)

Nov 19 '05 #2
UJ
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?

"visar" <vi*********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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)

Nov 19 '05 #3
UJ wrote:
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,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #4
UJ
Real problem is people having caching server at the other end that we have
no control over.

"Joerg Jooss" <ne********@joergjooss.de> wrote in message
news:xn****************@msnews.microsoft.com...
UJ wrote:
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,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de

Nov 19 '05 #5
What is your client? Windows Forms, think client..?

Nov 19 '05 #6
UJ wrote:
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,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: S.W. Rasmussen | last post by:
Handling file downloading with Randy Birch very nice code (http://vbnet.mvps.org/code/internet/ftpdofiledownload.htm) raises a second question: I my case, the user should not be allowed to...
4
by: Luke StClair | last post by:
Only marginally belonging in this newsgroup... but oh well. I've just started writing in python, and I want to make the files available on the web. So I did the standard <a...
0
by: TJ | last post by:
Hi, I've written code web-based uploading and downloading. Here is some code for it. For saving file into MS-SQL database, SaveFileIntoDB(HttpPostedFile file) { int fileLength =...
4
by: Richard L Rosenheim | last post by:
I know that I can download a file from a web server by using the WebClient.DownloadFile method. But, does anyone know of an example of downloading a file from a web server with the ability to...
1
by: just.starting | last post by:
Hi, My dot net client downloads files and checks for any new files time to time. The server is apache2.0.53 server. So what happens is that my file download thing works fine if I dont try to call...
2
by: Tomas Martinez | last post by:
Hi there! I'm trying to download a file in my asp.net web, but when downloading it from a Firefox browser, instead of downloading the example.exe file, it's downloading example.exe.htm. My code...
5
by: rony_16 | last post by:
Hi, I have a problem downloading a file . after i connect to the website and get the stream , i treing to write the file on the HD. public void SaveStreamToFile(string filePath, Stream stream) {...
1
by: DBC User | last post by:
Hello, I would like to copy a very large file (80MB) from the web, which is the best approach for downloading such a large file and also how can I show how much percent completed to user. I...
3
by: Chuck Renner | last post by:
Please help! This MIGHT even be a bug in PHP! I'll provide version numbers and site specific information (browser, OS, and kernel versions) if others cannot reproduce this problem. I'm...
6
by: cyusman | last post by:
Hi, We have just moved our application to a new webfarm server environment which utilizing hardware load balancing, SSL off-loading and HTTP compression off-loading.My application is running on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.