Mailing List Archive

simple question. Not using 2.xxx10. query params
I am using the 2xxx09 version on OpenBSD.
The manual pages are still unfinished on this version,
so I can't find a way to probe for any particular parameter
such as URL?lang=es&happy=yes&sad=no

$r->args(); just produces a string.

Do I really have to parse strings myself or is there a method
that was undocumented in version 2.xxxx09?
The manual page right where this would be explained says it needs
to be finished, which leaves me clueless on how to proceed.

Thanks,
Chris Bennett
Re: simple question. Not using 2.xxx10. query params [ In reply to ]
libapreq2 (Apache2::Request) does this kind of stuff, or you can use a
framework that sits on top of mod_perl that handles it for you. If you
want to write raw handlers, the libapreq2 is probably the way to go.

https://httpd.apache.org/apreq/docs/libapreq2/

Adam

On 18-01-09 10:18 PM, Chris Bennett wrote:
> I am using the 2xxx09 version on OpenBSD.
> The manual pages are still unfinished on this version,
> so I can't find a way to probe for any particular parameter
> such as URL?lang=es&happy=yes&sad=no
>
> $r->args(); just produces a string.
>
> Do I really have to parse strings myself or is there a method
> that was undocumented in version 2.xxxx09?
> The manual page right where this would be explained says it needs
> to be finished, which leaves me clueless on how to proceed.
Re: simple question. Not using 2.xxx10. query params [ In reply to ]
Try this:
my %params = $r->args;
my $lang = $params{lang};
On Tuesday, January 9, 2018, 3:36:04 PM CST, Chris Bennett <chris002@bennettconstruction.us> wrote:

I am using the 2xxx09 version on OpenBSD.
The manual pages are still unfinished on this version,
so I can't find a way to probe for any particular parameter
such as URL?lang=es&happy=yes&sad=no

$r->args(); just produces a string.

Do I really have to parse strings myself or is there a method
that was undocumented in version 2.xxxx09?
The manual page right where this would be explained says it needs
to be finished, which leaves me clueless on how to proceed.

Thanks,
Chris Bennett
Re: simple question. Not using 2.xxx10. query params [ In reply to ]
Try this:
my %params = $r->args;
my $lang = $params{lang};
On Tuesday, January 9, 2018, 3:36:04 PM CST, Chris Bennett <chris002@bennettconstruction.us> wrote:

I am using the 2xxx09 version on OpenBSD.
The manual pages are still unfinished on this version,
so I can't find a way to probe for any particular parameter
such as URL?lang=es&happy=yes&sad=no

$r->args(); just produces a string.

Do I really have to parse strings myself or is there a method
that was undocumented in version 2.xxxx09?
The manual page right where this would be explained says it needs
to be finished, which leaves me clueless on how to proceed.

Thanks,
Chris Bennett
Re: simple question. Not using 2.xxx10. query params [ In reply to ]
On Tue, Jan 09, 2018 at 10:01:28PM +0000, Adam Prime wrote:
> libapreq2 (Apache2::Request) does this kind of stuff, or you can use a
> framework that sits on top of mod_perl that handles it for you. If you want
> to write raw handlers, the libapreq2 is probably the way to go.
>
> https://httpd.apache.org/apreq/docs/libapreq2/
>

Apologies, the existing documentation implies that Apache2::Request
was gone. Left me very confused.
Working now. :-)

I've been a bit overwhelmed by having lost my server when company
distcontinued offering servers and bouncing around trying to find a
suitable server and get a working laptop! Trying to get a friend's
Windows laptop working with an old firefox and an old version of Java
was a couple of days of frustration!

Thanks,
Chris Bennett