WebClient DownloadFile gets ALL files in directory?!? WebClient bug?

J

Jeremy

I'm trying to download ONE file from a server using
WebClient.DownloadClient, however ALL files in the servers directory
are being downloaded.

There's nothing odd about my file's url, e.g.
"http://server.com/file.jpg", and I'm setting no other WebClient
properties. Just calling DownloadFile. Very simple. But, in
addition to the resuested file I get LOTS of other files I have no
interest in.

This happens with the MS example code for DownloadFile as well.

Any ideas? It seems like a bug in the WebClient class.


** REPLY TO: jj AT imtc DOT gatech DOT edu
 
J

Jeremy

I'm trying to download ONE file from a server using
WebClient.DownloadClient, however ALL files in the servers directory
are being downloaded.

There's nothing odd about my file's url, e.g.
"http://server.com/file.jpg", and I'm setting no other WebClient
properties. Just calling DownloadFile. Very simple. But, in
addition to the resuested file I get LOTS of other files I have no
interest in.

This happens with the MS example code for DownloadFile as well.

Any ideas? It seems like a bug in the WebClient class.


** REPLY TO: jj AT imtc DOT gatech DOT edu


The problem seems to be related to the ISS Web server bundled with XP
Pro. I can download an image from SlashDot.com and receive just that
image, but if I download a file from my workstation (running ISS) I
get all the files in the directory. Wierd...

** REPLY TO: jj AT imtc DOT gatech DOT edu
 

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

Top