Beginner wrote: > The resource after /parts could in theory be any number but you would > not want to have a <Location> for each part that existed. Rather > you'd want the handler responsible for /parts to check your db and > return either content or 400. > > On the face of it this is the sort of thing mod_perl should excel at. > Does it? Can you intercept requests like this one above? Which API > methods should I be looking at?
It's not a mod_perl thing exactly. It's a framework thing as to how to interpret the URL. Take a look at CGI::Application using CGI::Application::Dispatch (warning, the latter is my module). Or you can do the same thing with Catalyst or REST::Application. -- Michael Peters Developer Plus Three, LP