Phil Dobbin writes: > >Has anyone submitted a patch to Gisle that checks for a > >case-insensitive filesystem and offers to install the aliases as > >lwp-head lwp-get lwp-post instead of HEAD, GET, and POST? > > No but have thought often about it (over three machines). > Any pointers appreciated and I'll get on it ;-)
Let's see ... you'd want to add the case-insensitive filename checks (write "a" and try to read from "A") in the Makefile.PL. If it was found, then offer to install as lwp-* (and caution that HEAD will conflict with /usr/bin/head on a case insensitive filesystem). Then you'd want to change lwp-request to understand that if it was called as lwp-GET then it should perform a GET request. Right about this line: $method = uc(lc($progname) eq "lwp-request" ? "GET" : $progname); would seem to be where you'd say "if matches /lwp-(\w+)/ and $1 is an allowed method [see %allowed_methods], then $1 is the method name". And, of course, ask Gisle first whether this is how he wants to handle it ... Nat
