RFC: CGI::URI2param (was: handler question)

2001-07-04 Thread Thomas Klausner
Hi! darren chamberlain <[EMAIL PROTECTED]>: > How is it different from mod_rewrite using the QSA flag to add > values to r->args? (This is a question, not a criticism!) True, you could use mod_rewrite to get the same result, but there are situations where you can't use it, e.g. you're not workin

Re: handler question

2001-07-04 Thread Viljo Marrandi
> It depends on what you are trying to accomplish, of course, but > for most purposes, yeah, splitting r->uri on '/' will give a > useful list of directories. If you are using these as actual > filenames, and ignoring r->filaname, however, beware of requests > like: > > http://foo.bar.baz/my_ha

Re: handler question

2001-07-03 Thread Robin Berjon
On Tuesday 03 July 2001 22:18, darren chamberlain wrote: > Robin Berjon <[EMAIL PROTECTED]> said something to this effect on 07/03/2001: > > Pretty cool ! You should definitely put it on CPAN. Apache::RegexedParam > > ? > > How is it different from mod_rewrite using the QSA flag to add > values t

Re: handler question

2001-07-03 Thread darren chamberlain
Robin Berjon <[EMAIL PROTECTED]> said something to this effect on 07/03/2001: > On Tuesday 03 July 2001 21:18, Thomas Klausner wrote: > > I have a nearly finished module which applies some regular > > expression (specified in some config file) to the URI and puts the > > stuff it found into $r->pa

RE: handler question

2001-07-03 Thread Geoffrey Young
> -Original Message- > From: Robin Berjon [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 03, 2001 3:42 PM > To: [EMAIL PROTECTED] > Subject: Re: handler question > > > On Tuesday 03 July 2001 21:18, Thomas Klausner wrote: > > I have a nearly fini

Re: handler question

2001-07-03 Thread kyle dawkins
All This is an interesting idea, so I thought I'd add my two cents and say that you can already do exactly this with mod_rewrite. I guess it's useful to have a perl module that does it as well, but sometimes re-inventing the wheel is not worth the trouble. I can see the utility for people w

Re: handler question

2001-07-03 Thread Robin Berjon
On Tuesday 03 July 2001 21:18, Thomas Klausner wrote: > I have a nearly finished module which applies some regular > expression (specified in some config file) to the URI and puts the > stuff it found into $r->param (that means you have to use CGI or > Apache::Request to use it). > > BTW, if anyb

Re: handler question

2001-07-03 Thread Thomas Klausner
Hi! On 3 Jul 2001, at 15:21, Viljo Marrandi wrote: > Actually i thought about r->uri. It returns everything after servername > and if i split it using '/' as separator i think i'm almost there ;o). I have a nearly finished module which applies some regular expression (specified in some config

Re: handler question

2001-07-03 Thread darren chamberlain
Viljo Marrandi <[EMAIL PROTECTED]> said something to this effect on 07/03/2001: > > If sounds like you want to use r->path_info in your application, > > so you *can't* create these directories, or they will become part > > of r->filename, not r->path_info. > > > Actually i thought about r->uri.

Re: handler question

2001-07-03 Thread Viljo Marrandi
> Use a Location rather than Directory directive. Use the absolute > URI relative to the server as the second part (e.g., > http://www.foo.bar/baz would look like ). Hey, that's what i needed. Thanks :) > If sounds like you want to use r->path_info in your application, > so you *can't* create t

Re: handler question

2001-07-03 Thread darren chamberlain
Viljo Marrandi <[EMAIL PROTECTED]> said something to this effect on 07/03/2001: > Hello, > > Is it possible, if yes then how, to set handler recursively for one > directory? Now my handler is defined: > > > SetHandler perl-script > PerlHandler MyServ::MyHandler > Use a Location rathe

handler question

2001-07-03 Thread Viljo Marrandi
Hello, Is it possible, if yes then how, to set handler recursively for one directory? Now my handler is defined: SetHandler perl-script PerlHandler MyServ::MyHandler But if i try to access /my_server/some/other/dir then apache gives error because this directory doesn't exist, which