Hello,
I use wget in windows and I may have found a bug.
In my pc I have a web server that put some folders accessible on the net,
When I was playing with wget I found a very strange behaviour.

When I run a batch file

wget -m -k -np "http://ecopyserver/fep/Documentos/";

the content downloaded with wget:
ecopyserver
|   
\---fep
    \---Documentos
            index.html


_________________________________________________

now with the word Documents with a small 'd':

wget -m -k -np "http://ecopyserver/fep/documentos/";

the content downloaded with wget:
ecopyserver
|   robots.txt
|   
\---fep
    \---documentos
        |   index.html
        |   
        +---Cap¡tulo I - Dem. dos Resultados
        |   |   index.html
        |   |   
        |   +---Apresenta‡äes
        |   |       Demonst. dos Resultados - VersÆo A.pdf
        |   |       Demonst. dos Resultados - VersÆo B.pdf
        |   |       index.html
        |   |       
        |   +---Exerc¡cios
        |   |       Exerc¡cio 1 - Enunciado.pdf
        |   |       Exerc¡cio 1 - Resolu‡Æo.pdf
        |   |       Exerc¡cio 2 - Enunciado.pdf
        |   |       Exerc¡cio 2 - Resolu‡Æo.pdf
        |   |       Folha de Resolu‡Æo do Exerc¡cio 1.pdf
        |   |       Folha de Resolu‡Æo do Exerc¡cio 2.pdf
        |   |       index.html
        |   |       
        |   \---Outros materiais
        |           Demonst. dos Resultados da RAR A‡£car.conteudos_cont
        |           index.html
        |           Relat¢rio e Contas da RAR A‡£car.pdf
        |           
        +---Cap¡tulo II - Dem. dos Fluxos de Caixa
        |   |   index.html
        |   |   
        |   +---Apresenta‡äes
        |   |       Demonst. dos Fluxos de Caixa - VersÆo A.pdf
        |   |       Demonst. dos Fluxos de Caixa - VersÆo B.pdf
        |   |       Exemplo Topcom.pdf
        |   |       index.html
        |   |       
        |   +---Exerc¡cios
        |   |       Exerc¡cio 1 - Enunciado.pdf
        |   |       Exerc¡cio 2 - Enunciado.pdf
        |   |       Folha de Resolu‡Æo do Exerc¡cio 1.pdf
        |   |       Folha de Resolu‡Æo do Exerc¡cio 2.pdf
        |   |       index.html
        |   |       Relat¢rio e Contas - Brisa.pdf
        |   |       
        |   \---Outros materiais
        |           index.html
        |           
        \---Programa
                index.html
                Programa Contabilidade II.pdf


I think this is because of the relative paths links to files and
folders and the capital letter in the URL, below is the html code from
page http://ecopyserver/fep/documentos/

<html>
<head>
<title>WWW File Share Pro</title>
<link href="/web.css" rel=stylesheet type=text/css>
</head>

<body bgcolor="#EFEFEF">
<table width="100%" border="1" cellspacing="2" cellpadding="1"
bgcolor="#CCCCCC" bordercolor="#FFFFFF">
  <tr> 
    <td height="28">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="56%"><b>&nbsp;<a href="http://www.wfshome.com";
target="_blank">WWW File Share Pro</a></b></td>
          <td align="right" width="44%"><a
href="JavaScript:history.back()">&lt;&lt;&lt;Back</a>&nbsp;<a
href="/">Home</a>&nbsp;|&nbsp;<a
href="/upload1.htm">Upload</a>&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="100%" border="1" cellspacing="2" cellpadding="1"
bgcolor="#CCCCCC" bordercolor="#FFFFFF">
  <tr> 
    <td height="28">Click <a
href="JavaScript:history.back()">&lt;&lt;&lt;Back</a> or <a
href="JavaScript:history.back()"><img src="/icon15.gif" width="16"
height="16" border="0"></a> to go back.
Click <a href="/">Home</a> to visit homepage. 
Click <a href="/upload1.htm">Upload</a> to upload file.
</td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr valign="top"> 
    <td height="335"> 
      <table width="100%" border="1" cellspacing="2" cellpadding="1"
bgcolor="#CCCCCC" bordercolor="#FFFFFF">
        <tr align="center" bgcolor="#999999">
          <td width="3%"><a href="JavaScript:history.back()"><img
src="/icon15.gif" width="16" height="16" border="0"></a></td>
          <td width="55%"><font color="#FFFFFF"><b>Name</b></font></td>
          <td width="17%"><font color="#FFFFFF"><b>Size(bytes)</b></font></td>
          <td width="25%"><font color="#FFFFFF"><b>Modified</b></font></td>
        </tr>
<tr bgcolor="#CCCCCC">
<td width="3%" align="center"><img src="/icon1.gif" width="16"
height="16" border="0"></td>
<td width="55%"><a
href="/fep/documentos/Cap%EDtulo%20I%20%2D%20Dem.%20dos%20Resultados/">Capítulo
I - Dem. dos Resultados</a></td>
<td width="17%" align="right">&lt;dir&gt;&nbsp;</td>
<td width="25%" align="center">06-03-2005 11:29 </td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="3%" align="center"><img src="/icon1.gif" width="16"
height="16" border="0"></td>
<td width="55%"><a
href="/fep/documentos/Cap%EDtulo%20II%20%2D%20Dem.%20dos%20Fluxos%20de%20Caixa/">Capítulo
II - Dem. dos Fluxos de Caixa</a></td>
<td width="17%" align="right">&lt;dir&gt;&nbsp;</td>
<td width="25%" align="center">06-03-2005 11:29 </td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="3%" align="center"><img src="/icon1.gif" width="16"
height="16" border="0"></td>
<td width="55%"><a href="/fep/documentos/Programa/">Programa</a></td>
<td width="17%" align="right">&lt;dir&gt;&nbsp;</td>
<td width="25%" align="center">06-03-2005 11:29 </td>
</tr>
      </table>
    </td>
  </tr>
</table>
<table width="100%" border="1" cellspacing="2" cellpadding="1"
bgcolor="#CCCCCC" bordercolor="#FFFFFF">
  <tr align="center"> 
    <td height="27"><a href="http://www.lionmax.com";
target="_blank">Powered by LionMax Software</a></td>
  </tr>
</table>
</body>
</html>

Reply via email to