Re: state of the cdrom mirrors report
Josip Rodin said:
> (On related note, I need to check out that WebDAV module for Apache,
> apparently it provides machine-parseable directory indices via HTTP.)
It does, and it's great, but it'll only help you for mirror sites that
are running apache+mod_dav (or some other DAV-capable web server) AND
have DAV switched on for the Debian mirror part of the website. Or I
have I completely misunderstood what you're wanting to do?
The output of directories in HTML format by Apache and various other web
servers isn't that difficult to parse. Certainly not when you already
know what you're looking for (which you do). And if you just want to
test for the existence of a certain file, it's even easier to look at it
directly ...
$ nc -v ftp.au.debian.org 80
www.planetmirror.com [203.16.234.20] 80 (?) open
HEAD http://ftp.au.debian.org/pub/debian-cd/3.0_r0/i386/binary-i386-1.iso HTTP/1.0
HTTP/1.0 200 OK
Date: Thu, 05 Dec 2002 01:25:02 GMT
Server: Apache/1.3.27 (Unix) PHP/4.2.3 mod_layout/3.2
Last-Modified: Mon, 22 Jul 2002 13:31:18 GMT
ETag: "19970b-28718000-3d3c0926"
Accept-Ranges: bytes
Content-Length: 678526976
Content-Type: application/octet-stream
X-Cache: MISS from proxy.rts.com.au
X-Cache-Lookup: MISS from proxy.rts.com.au:3128
Proxy-Connection: close
Yep, there's a file there, last modified July 22 '02, and it's 647M.
Sounds about right. =)
The problem here of course is that (as has already been pointed out)
there is no standard directory structure for the Debian CD mirrors. The
one on ftp.au.debian.org is pretty good though IMO. Hopefully the
debian-cd people can sort that out sometime.
Andrew.
--
Andrew Shugg <andrew@neep.com.au> http://www.neep.com.au/
"Just remember, Mr Fawlty, there's always someone worse off than yourself."
"Is there? Well I'd like to meet him. I could do with a good laugh."
Reply to: