http dist directory

hello everyone,

I would like to download files from HTTP directory like this one : https://nodejs.org/dist/v0.8.17/

what is the best way to do it ? can I do it with the windows API or should I get another library like libcurl or a HTML parser ??

I'm completly lost ! this http directory is simple but some other are not simple at all (it depend of the server software ; apache, nginx etc etc)and it also can have subdirectory etc

What is the best way to do it ?

for example you can do it with wget : https://stackoverflow.com/questions/23446635/how-to-download-http-directory-with-all-files-and-sub-directories-as-they-appear

it would be better if I have no other dependency if you know what I mean :)

thanks !
Last edited on
Where I can find how wget do it ?
no experience with HTTP parsing, and I think Windows API doesn't have such functions.

wget source is here:

GNU Wget
git clone https://git.savannah.gnu.org/git/wget.git
https://savannah.gnu.org/git/?group=wget
With the Win API you can download an individual file: https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/ms775123(v=vs.85)

However you need to specify the url for each file which is probably not what you want.

If the website allows anonymous FTP access you could use the WinInet functions from the Win API.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa384180(v=vs.85).aspx

If you don't mind using .NET with the WebBrowser control things might be the easiest.
Topic archived. No new replies allowed.