Re: --base does not consider references to root directory

2007-07-14 Thread Matthias Vill
So you would suggest handling in the way that when I use wget --base=/some/serverdir http://server/serverdir/ /.* will be interpreted as /some/.* so if you have a link like /serverdir/ it would go back to /some/serverdir, right? I guess this would be ok. Just one question if there is a Link back

Re: --base does not consider references to root directory

2007-07-14 Thread Josh Williams
On 7/14/07, Matthias Vill [EMAIL PROTECTED] wrote: So you would suggest handling in the way that when I use wget --base=/some/serverdir http://server/serverdir/ /.* will be interpreted as /some/.* so if you have a link like /serverdir/ it would go back to /some/serverdir, right? Correct. I

Re: --base does not consider references to root directory

2007-07-14 Thread Matthias Vill
I think I got your point: All in all this is still a matter of comparing the first against the current url and counting the common dirs from the left side. Then you compare that number(a) to the depth of the first url(b) and add b-a ../ so you get to the right position inside your base. By that

Re: --base does not consider references to root directory

2007-07-14 Thread Josh Williams
On 7/14/07, Matthias Vill [EMAIL PROTECTED] wrote: I think I got your point: Now i think this could result in different problems like what schould happen with wget -r --base=/home/matthias/tmp http://server/with/a/complicated/structure/and/to/many/dirs/a.php; If you now have a link to

Re: --base does not consider references to root directory

2007-07-14 Thread Micah Cowan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Josh Williams wrote: Consider this example, which happens to be how I realised this problem: wget http://www.mxpx.com/ -r --base=. Here, I want the entire site to be downloaded with each link pointing to the local file. This works for some

Re: BASE

2005-09-01 Thread Hrvoje Niksic
Youssef Eldakar [EMAIL PROTECTED] writes: I noticed that URLs in BASE HREF=... are not converted when using the -k option to convert links in recursive downloads. In which case, they have to be fixed manually in order for browsing to work. Is there a better solution? wget -k is supposed to

RE: BASE

2005-09-01 Thread Youssef Eldakar
Well, base href=. doesn't help either in IE. From: Hrvoje Niksic [mailto:[EMAIL PROTECTED] Sent: Thu 9/1/2005 3:28 PM To: Youssef Eldakar Cc: wget@sunsite.dk Subject: Re: BASE Youssef Eldakar [EMAIL PROTECTED] writes: It does change it to base href