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
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.