Hmmm.
Something like -R?N=D,?M=A,?S=A,?D=A definitively DID work for me.
Currently it does not. All test done on windows NT, using
wget -dvkKrHp -l1 -a wget.log -R?N=D,?M=A,?S=A,?D=A
http://srvmrtg/mrtg/hp/
...
srvmrtg/mrtg/hp/index.html: merge("http://srvmrtg/mrtg/hp/", "?N=D") ->
http://srvmrtg/mrtg/hp/?N=D
appending "http://srvmrtg/mrtg/hp/?N=D" to urlpos.
...
Deciding whether to enqueue "http://srvmrtg/mrtg/hp/?N=D".
Decided to load it.
Enqueuing http://srvmrtg/mrtg/hp/?N=D at depth 1
Queue count 2, maxcount 2.
On the other hand, trying some older binaries I've around, wget compiled
from cvs sources on 2001 11 29 does retrieve those files, while wget
compiled from cvs on 2001 07 12 logged:
...
srvmrtg/mrtg/hp/index.html: merge("http://srvmrtg/mrtg/hp/", "?N=D") ->
http://srvmrtg/mrtg/hp/?N=D
...
parseurl ("http://srvmrtg/mrtg/hp/?N=D") -> host srvmrtg -> opath
mrtg/hp/?N=D -> dir mrtg/hp -> file ?N=D -> ndir mrtg/hp
newpath: /mrtg/hp/?N=D
http://srvmrtg/mrtg/hp/?N=D (?N=D) does not match acc/rej rules.
http://srvmrtg/mrtg/hp/?N=D already in list, so we don't load.
in other words, "correct" behaviour at 20010712, gone incorrect sometime
before 20011129. I think you are right, its' broken right now, at least
on windows. Anyone can replicate on unix ?
Heiko
--
-- PREVINET S.p.A. [EMAIL PROTECTED]
-- Via Ferretto, 1 ph x39-041-5907073
-- I-31021 Mogliano V.to (TV) fax x39-041-5907087
-- ITALY
> -----Original Message-----
> From: Alan Eldridge [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 13, 2002 7:37 AM
> To: [EMAIL PROTECTED]
> Subject: How to reject *??=?
>
>
> I can't seem to find the magic incantation that will cause
> wget's -R option
> to not store those damned ?M=A etc things that come down when
> mirroring an
> http directory with a generated index.html file.
>
> E.g., you mirror http://site.domain/the/dir/, and so you get
> http://site.domain/the/dir/?M=A, which is then saved as the local name
> the/dir/index.html?M=A.
>
> So, what's the right way to do this? Or is it just
> fundamentally broken?
>
> --
> Alan Eldridge
> "Dave's not here, man."
>