[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] --convert-links and 302 redirects
From: |
Hrunting Johnson |
Subject: |
[Bug-wget] --convert-links and 302 redirects |
Date: |
Tue, 13 Oct 2009 17:06:40 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Using the latest version of wget, it appears that --convert-links doesn't work
when the URL being fetched is a redirect to another URL. For example:
Server: www.host.com:
<base href="http://foo.host.com">
<a href="/foo">Foo</a>
If http://foo.host.com/foo redirects to http://bar.host.com/foo, then the data
for http://bar.host.com/foo gets downloaded and followed properly, but the URL
/foo gets rewritten improperly to http://foo.host.com/foo (should be
../bar.host.com/foo), which breaks the mirror. Other, non-redirected links get
rewritten just fine.
Can anyone else confirm this behavior?
The command I'm running is:
wget --timeout=30 -E -H -p --convert-links -r -p --domains=host.com -e
robots=off -P host.com http://www.host.com/
Thanks in advance.
- [Bug-wget] --convert-links and 302 redirects,
Hrunting Johnson <=