Excellent question, and very easily doable.  You want to look at the
PerlTransHandler

http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlTransHandler

  Issac

Beginner wrote:
> Hi,
> 
> I hope this isn't a dumb question. 
> 
> I want to try and create a small REST style installation and was 
> considering how to overcome the problem of urls in the form
> 
> http://www.myfactory.com/parts/1234
> 
> 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?
> 
> TIA,
> Dp.

Reply via email to