Re: HTTP Download

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 05/11/04


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


Relevant Pages

  • Re: Assembly conversion to Pocket Pc format
    ... string strfilename = ... for .NET assemblies, i.e. it is simply passing them through unmodified. ... rather I want to download from HTTP or HTTPS. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: HTTP Download complete detect using TCP sniffer
    ... its HTML have been received. ... HTTP parsing" would tell me the HTTP download is complete please? ... When the request is sent you start ...
    (microsoft.public.win32.programmer.networks)
  • Re: Safe Update problem
    ... The reason is that the object being used to fetch the file is the NetWebClient, which is an HTTP client. ... You can replace the SafeDownload procedure in your application with your own version that uses the NetTalk FTP template to fetch the file for you if you have to use FTP to download the file. ... Why I can download file from ftp when I using url without login and password for example: ...
    (comp.lang.clarion)
  • Re: Updating a VB6 across the Internet
    ... Can you host the update download on an HTTP? ... I wrote an update function into the program using FTP calls. ... Many corporate firewalls do not allow users to use FTP. ...
    (comp.lang.basic.visual.misc)
  • Re: Bugs in http
    ... of-line translations are meaningful for ... download a tcl source file and try to edit ... it would mean that changing the encoding would be ... transform, great, but it isn't part of http and the http part of the ...
    (comp.lang.tcl)