Re: HTTP Download
From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 05/11/04
- Next message: songie D: "Re: Anybody knows about a recommended C++ code "beautifier"?"
- Previous message: songie D: "Re: Question about the dreaded MC++"
- In reply to: MikeM: "HTTP Download"
- Next in thread: Phil Frisbie, Jr.: "Re: HTTP Download"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 11 May 2004 15:14:14 -0400
"MikeM" <mike.masino@ces.uwex.edu> wrote in message
news:A8125E42-D2A1-45E0-9295-369307DEB5C1@microsoft.com
> Is there a way to download everything that is in a directory via
> HTTP? The directory is going to be used as a depository for .jpeg
> files. The names of the files will vary depending on who places them
> on the server. The directory is freely accessible but we have
> directory browsing disabled and do not want to change this. I have
> written similar code that read the directory file and used the file
> names retrieved from that to move the files. The only other option I
> could come up with is to put these files on there own server and
> enable directory browsing (We would like to avoid having to do this).
> I am using Win32 API. Any suggestions would be much appreciated?
It is easy to download a file via HTTP once you know the file name. So
your problem is to allow an HTTP client to enumerate the contents of a
directory. Which is exactly what directory browsing is for, and you have
specifically disallowed it. So first figure out what you want after
all - do you want an HTTP client to be able to enumerate the directory,
or don't you?
I guess you can write a server script, accessible via HTTP, that would
enumerate the directory and return a list of file names. You can set up
authentication for this script, so it can only be used by a client that
knows the right password.
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
- Next message: songie D: "Re: Anybody knows about a recommended C++ code "beautifier"?"
- Previous message: songie D: "Re: Question about the dreaded MC++"
- In reply to: MikeM: "HTTP Download"
- Next in thread: Phil Frisbie, Jr.: "Re: HTTP Download"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|