Re: [cgiapp] C::A::P::Routes

2010-03-05 Thread Ron Savage
Hi Michael From Michael Peters mpeters at plusthree.com On 03/04/2010 10:04 AM, Brad Van Sickle wrote: Maybe CGI::Application::Dispatch or CAP::Routes is a better/more powerful way to do this... but I don't see how. Which is why I'm asking. There are pros and cons to both ways (using

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread Mike Tonks
I am using CAP::Routes and it works very well for me. First off, I am using ScriptAlias to map the url and hide the script name it the url: So I have a few lines in my /etc/apache2/sites-available/app virtual host file: ScriptAlias /contacts /var/www/app/cgi-bin/contacts.cgi

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread P Kishor
On Thu, Mar 4, 2010 at 3:33 AM, Mike Tonks fluffym...@googlemail.com wrote: I am using CAP::Routes and it works very well for me. Thanks for the report. This is good to know, because this proves I must be doing something wrong, even though I can't figure out what. I am not using ScriptAlias,

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread Brad Van Sickle
Tangential discussion on this... but what is the value in using dispatching modules like CAP::Routes and CGI::Application::Dispatch? I've looked at them in the past, and I've heard it mentioned many times that they are wonderfully useful.. but I've never fully understood why. Currently I'm

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread Clayton Scott
On Thu, Mar 4, 2010 at 9:25 AM, Brad Van Sickle bvansick...@gmail.com wrote: Tangential discussion on this... but what is the value in using dispatching modules like CAP::Routes and CGI::Application::Dispatch? The big advantage for me when I decided to use CAP::Routes for a project was because

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread P Kishor
On Thu, Mar 4, 2010 at 8:25 AM, Brad Van Sickle bvansick...@gmail.com wrote: Tangential discussion on this... but what is the value in using dispatching modules like CAP::Routes and CGI::Application::Dispatch? I've looked at them in the past, and I've heard it mentioned many times that they

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread Brad Van Sickle
All of that can be done with mod rewrite. A (sanitized) example of a rewrite/proxy rule I have working in an existing application RewriteRule Runmode/([0-9]+)/([a-zA-Z0-9]+) http://server/perl/instance.pl?rm=RunmodePARAM1=$1PARAM2=$2 [P,L] Which takes the URI Runmode/20/Data and turns it into

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread P Kishor
Brad, On Thu, Mar 4, 2010 at 9:04 AM, Brad Van Sickle bvansick...@gmail.com wrote: All of that can be done with mod rewrite.  A (sanitized) example of a rewrite/proxy rule I have working in an existing application RewriteRule Runmode/([0-9]+)/([a-zA-Z0-9]+)

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread P Kishor
On Thu, Mar 4, 2010 at 9:26 AM, Clayton Scott clayton.sc...@gmail.com wrote: On Thu, Mar 4, 2010 at 10:04 AM, Brad Van Sickle bvansick...@gmail.com wrote: All of that can be done with mod rewrite.  A (sanitized) example of a rewrite/proxy rule I have working in an existing application

Re: [cgiapp] C::A::P::Routes

2010-03-04 Thread Michael Peters
On 03/04/2010 10:04 AM, Brad Van Sickle wrote: Maybe CGI::Application::Dispatch or CAP::Routes is a better/more powerful way to do this... but I don't see how. Which is why I'm asking. There are pros and cons to both ways (using mod_rewrite or Dispatch) and I frequently use them both, even

[cgiapp] C::A::P::Routes

2010-03-03 Thread P Kishor
A while back I attempted working with CAPRoutes, but failed. Today I decided to revisit it, and failed again. In fact, I am failing at getting the simplest possible application running with it, and I am wondering -- either I am completely clueless about how this is supposed to work, or this module

Re: [cgiapp] C::A::P::Routes

2010-03-03 Thread Ron Savage
Hi On Wed, 2010-03-03 at 15:56 -0600, P Kishor wrote: A while back I attempted working with CAPRoutes, but failed. Today I decided to revisit it, and failed again. In fact, I am failing at I've never used it. CGI::Application::Dispatch is superb, so that's what I'm sticking with. Not only

Re: [cgiapp] C::A::P::Routes

2010-03-03 Thread P Kishor
On Wed, Mar 3, 2010 at 4:33 PM, Ron Savage r...@savage.net.au wrote: Hi On Wed, 2010-03-03 at 15:56 -0600, P Kishor wrote: A while back I attempted working with CAPRoutes, but failed. Today I decided to revisit it, and failed again. In fact, I am failing at I've never used it.

Re: [cgiapp] C::A::P::Routes

2010-03-03 Thread Michael Peters
On 03/03/2010 05:58 PM, P Kishor wrote: I do use CAD in another application, and yes, that works rather well. For a number of reasons, I want to explore CAPRoute. In fact, one thing I don't like about CAD is that it breaks the (to me) established formula of extending a CA application's