-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Момчил Божинов wrote:
> Hi,
>  
> Im trying to mirror a website using wget (*GNU Wget 1.10.2*, a
> non-interactive network retriever.) on Windows XP SP2
>  
> Here is what I use:
> *wget -m -p -r -nH --cache=off --level=0 --cut-dirs=3
> **http://code.phpbb.com/svn/phpbb/trunk/phpBB/** 2>>log.log*
>  
> When first downloading all OK. But once the file is donwloaded and wget
> tries to mirror it, I get:
>  
> *--18:55:11--  **http://code.phpbb.com/svn/phpbb/trunk/phpBB/common.php*
> *           => `phpBB/common.php'
> Reusing existing connection to code.phpbb.com:80.
> HTTP request sent, awaiting response... 401 Authorization Required
> Authorization failed.*
>  
> If the file exists I need auth, when it is not needed. The *Index.html*
> file is downloaded, but none of the other files is.
>  
> I tried excluding the .access file and the index.html files - no luck.
>  
> I thought the index.html files in the root/sub directories are the cause
> - removed them before mirror - no luck.
>  
> I have attached normal output and the debug output.

According to the debug log (and my own brief tests), the server issues a
401 in response to HEAD requests, but not for GET requests. This is
probably a server misconfiguration, but in the meantime, you'd probably
be best served by removing -m (which implies timestamping, -N), which
should result in Wget not bothering with HEAD requests, and going
straight for GET.

- --
HTH,
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH1X6Y7M8hyUobTrERAjgMAJ9IyLY9JPQ41z8OsmY98x9WTsdhHwCfb0Pa
n7oONSHvSWMt/k/qVcSl1ho=
=BRK7
-----END PGP SIGNATURE-----

Reply via email to