#!/bin/sh # This file is maintained using git on # http://mdcc.cx/git/wd/ad1810-stuff/ # ad1810-autoindex.cgi - generate output for autoindexing via the CGI # interface, using ad1810-autoindex # # Copyright (C) 2010 Joost van Baal # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License, as published by the Free Software # Foundation, either version 3 of the License, or (at your option) any later # version. There is NO warranty. A copy of the GNU GPL is available from # http://www.gnu.org/licenses/. # curl -v http://mdcc.cx/ # * Connected to mdcc.cx (212.204.237.162) port 80 (#0) # > GET / HTTP/1.1 # > User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.5 # > Host: mdcc.cx # > Accept: */* # # < HTTP/1.1 200 OK # < Date: Tue, 28 Dec 2010 08:18:52 GMT # < Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g # < Last-Modified: Wed, 08 Dec 2010 07:32:49 GMT # < ETag: "50011-19591-496e120cdaa40" # < Accept-Ranges: bytes # < Content-Length: 103825 # < Content-Type: text/html # < # { [data not shown] echo Content-Type: text/html echo # echo DEBUG ARGV $@ ad1810-autoindex