Re: path recognition question

2022-05-16 Thread Mithun Bhattacharya
You still have $r->path just pull the id from it ? On Thu, May 5, 2022, 4:20 PM Michael A. Capone wrote: > (Sorry for the late reply, been out of town) > > Recognizing that I've never gone as indepth with mod_perl as other users, > but it seems to me that accessing "id" here would just be a

Re: path recognition question

2022-05-05 Thread Michael A. Capone
(Sorry for the late reply, been out of town) Recognizing that I've never gone as indepth with mod_perl as other users, but it seems to me that accessing "id" here would just be a matter of grabbing the PATH_INFO environment variable, wouldn't it? if the url is www.example.com/app/user/12345,

Re: path recognition question

2022-04-21 Thread John Dunlap
I sent this 8 years ago but, at the time, no one was interested. [image: image.png] On Thu, Apr 21, 2022 at 9:40 AM John Dunlap wrote: > I ended up writing something custom to do that. > > On Wed, Apr 20, 2022 at 11:22 PM Henrik S > wrote: > >> given the sample url: >> >> /api/user/id >> >>

Re: path recognition question

2022-04-21 Thread John Dunlap
I ended up writing something custom to do that. On Wed, Apr 20, 2022 at 11:22 PM Henrik S wrote: > given the sample url: > > /api/user/id > > the part of "/api/user" is fixed. and there is a handler setup for this > path. > > how to get the id part in mod_perl? > > in other framework I could

Re: path recognition question

2022-04-20 Thread Jacques Deguest
I would use path_info. See Apache2::RequestRec manual page. Regards, Jacques On 2022/04/21 12:21, Henrik S wrote: given the sample url: /api/user/id the part of "/api/user" is fixed.  and there is a handler setup for this path. how to get the id part in mod_perl? in other framework I

path recognition question

2022-04-20 Thread Henrik S
given the sample url: /api/user/id the part of "/api/user" is fixed. and there is a handler setup for this path. how to get the id part in mod_perl? in other framework I could get it with the similar format: /api/user/:id puts "hallo #{id}" Thank you.