Vladimir Volovich wrote:
"DV" == Dmitry Vereschaka writes:

 >> suppose that i run
>> >> wget -r -l 1 http://some-host.com/index.html >> >> and index.html contains a link like this: >> >> <A HREF="../directory/file.html">file</A> >>
 DV> URL ../directory/file.html placed in
 DV> http://some-host.com/index.html is illegal because no parent
 DV> directory for /index.html exists.

it is "legal". it works everywhere else. that's why i ask to normalize
the URL properly.


The URL is "legal" if the web server doesn't complain (I'm betting its IIS?) and returns /directory/file.html properly, but it's still not technically proper to try to access a file above the root web directory.

I addressed this "bug" in wget few months ago.  See the fix here:

http://www.mail-archive.com/wget@sunsite.dk/msg08516.html

Regards,
Frank

Reply via email to