Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to use wget and http to download all contents from folderAA below to directory /root/sstest

wget -r --directory-prefix="/root/sstest"  -o /root/sstest2.log

When I submit the above command nothing is downloaded.

If I submit a wget request for a specific file from folderAA the file is actually downloaded to /root/sstest:

wget -r --directory-prefix="/root/sstest"  -o /root/sstest2.log

Can someone tell me why I cannot download all file content from folderAA at once using the first wget request?

share|improve this question

migrated from Nov 8 '12 at 10:34

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

I think it can only work if the website supports directory listing. But, allowing that is considered a security hole and therefore most of the websites don't allow it and this it why you fail to do what you want

share|improve this answer

You must log in to answer this question.