Hrvoje Niksic <[EMAIL PROTECTED]> writes:
> > BTW, Hrvoje (if you're reading this), in revision 1.27 of TODO, you
> > removed the item for converting hostless absolute links to relative.
> 
> See above.  I believe current CVS source meets the TODO requirements.
> I might be missing some case, though.  These things are tricky, and a
> test case would help.

Sorry, I shouldn't have assumed it wasn't working at all based on my one
test case that failed.  I already sent this to you directly in reply to your
personal email, but here it is again, in case others are interested.
Perhaps the reason this fails is because I specified the two URLs on the
commandline rather than one recursing to the other?


% cd .test
% cat page1.html
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  <head>
    <title>Page 1</title>
  </head>

  <body>
    <h1>Page 1</h1>

    <A HREF="/">Home</A>

    <hr>
    <address><a href="mailto:[EMAIL PROTECTED]">Dan Harkless</a></address>
<!-- Created: Tue Mar 20 04:04:50 PST 2001 -->
<!-- hhmts start -->
Last modified: March 20, 2001
<!-- hhmts end -->
  </body>
</html>
% wget --version
GNU Wget 1.7-dev

Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

Originally written by Hrvoje Niksic <[EMAIL PROTECTED]>.
% wget -p -k -K http://localhost/ http://localhost/dan/.test/page1.html
--04:14:37--  http://localhost/
           => `localhost/index.html'
Connecting to localhost:80... connected!
HTTP request sent, awaiting response... 200 OK
Length: 1,390 [text/html]

    0K .                                                     100% @ 339.36 KB/s

04:14:38 (193.92 KB/s) - `localhost/index.html' saved [1390/1390]

Loading robots.txt; please ignore errors.
--04:14:38--  http://localhost/robots.txt
           => `localhost/robots.txt'
Reusing connection to localhost:80.
HTTP request sent, awaiting response... 404 File Not Found
04:14:38 ERROR 404: File Not Found.

--04:14:38--  http://localhost/g25.jpg
           => `localhost/g25.jpg'
Reusing connection to localhost:80.
HTTP request sent, awaiting response... 200 OK
Length: 4,245 [image/jpeg]

    0K ....                                                  100% @ 414.55 KB/s

04:14:39 (345.46 KB/s) - `localhost/g25.jpg' saved [4245/4245]

--04:14:39--  http://localhost/Dec_Int_17-H-symmetricalized.jpg
           => `localhost/Dec_Int_17-H-symmetricalized.jpg'
Reusing connection to localhost:80.
HTTP request sent, awaiting response... 200 OK
Length: 6,046 [image/jpeg]

    0K .....                                                 100% @ 738.04 KB/s

04:14:39 (590.43 KB/s) - `localhost/Dec_Int_17-H-symmetricalized.jpg' saved [6046/6046]

--04:14:39--  http://localhost/common/home.gif
           => `localhost/common/home.gif'
Reusing connection to localhost:80.
HTTP request sent, awaiting response... 200 OK
Length: 308 [image/gif]

    0K                                                       100% @ 300.78 KB/s

04:14:39 (100.26 KB/s) - `localhost/common/home.gif' saved [308/308]

--04:14:39--  http://localhost/common/spacer.gif
           => `localhost/common/spacer.gif'
Reusing connection to localhost:80.
HTTP request sent, awaiting response... 200 OK
Length: 42 [image/gif]

    0K                                                       100% @  41.02 KB/s

04:14:39 (13.67 KB/s) - `localhost/common/spacer.gif' saved [42/42]

Converting localhost/index.html... done.
--04:14:39--  http://localhost/dan/.test/page1.html
           => `localhost/dan/.test/page1.html'
Reusing connection to localhost:80.
HTTP request sent, awaiting response... 200 OK
Length: 378 [text/html]

    0K                                                       100% @ 369.14 KB/s

04:14:40 (73.83 KB/s) - `localhost/dan/.test/page1.html' saved [378/378]

Converting localhost/dan/.test/page1.html... nothing to do.

FINISHED --04:14:40--
Downloaded: 12,409 bytes in 6 files
Converting localhost/index.html... done.
% fgrep Home localhost/dan/.test/page1.html
    <A HREF="/">Home</A>


---------------------------------------------------------------
Dan Harkless            | To help prevent SPAM contamination,
GNU Wget co-maintainer  | please do not mention this email
http://sunsite.dk/wget/ | address in Usenet posts -- thank you.

Reply via email to