MESSAGE
DATE | 2020-12-22 |
FROM | Matthias Peng
|
SUBJECT | Re: [Hangout - NYLXS] Confused about two development utils
|
From hangout-bounces-at-nylxs.com Tue Dec 22 15:33:32 2020 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www2.mrbrklyn.com (www2.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id 30785163FDB; Tue, 22 Dec 2020 15:33:32 -0500 (EST) X-Original-To: hangout-at-www2.mrbrklyn.com Delivered-To: hangout-at-www2.mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 1000) id DF7AB163FAC; Tue, 22 Dec 2020 15:32:26 -0500 (EST) Resent-From: Ruben Safir Resent-Date: Tue, 22 Dec 2020 15:32:26 -0500 Resent-Message-ID: <20201222203226.GG17865-at-www2.mrbrklyn.com> Resent-To: hangout-at-mrbrklyn.com X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from mxout1-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mrbrklyn.com (Postfix) with ESMTP id 7F620163F8F for ; Tue, 22 Dec 2020 08:20:47 -0500 (EST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id DA5BF6641B for ; Tue, 22 Dec 2020 13:20:45 +0000 (UTC) Received: (qmail 55562 invoked by uid 500); 22 Dec 2020 13:20:44 -0000 Mailing-List: contact modperl-help-at-perl.apache.org; run by ezmlm Precedence: bulk Delivered-To: mailing list modperl-at-perl.apache.org Received: (qmail 55488 invoked by uid 99); 22 Dec 2020 13:20:44 -0000 Received: from spamproc1-he-fi.apache.org (HELO spamproc1-he-fi.apache.org) (95.217.134.168) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2020 13:20:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamproc1-he-fi.apache.org (ASF Mail Server at spamproc1-he-fi.apache.org) with ESMTP id DA07EC04BE for ; Tue, 22 Dec 2020 13:20:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-fi.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamproc1-he-fi.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([116.203.227.195]) by localhost (spamproc1-he-fi.apache.org [95.217.134.168]) (amavisd-new, port 10024) with ESMTP id DVlsM1y2-R0D for ; Tue, 22 Dec 2020 13:20:43 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::230; helo=mail-oi1-x230.google.com; envelope-from=pengmatthias-at-gmail.com; receiver= Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id EE15E7F9E1 for ; Tue, 22 Dec 2020 13:20:42 +0000 (UTC) Received: by mail-oi1-x230.google.com with SMTP id d203so14747128oia.0 for ; Tue, 22 Dec 2020 05:20:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eRCQCEVghuAJDURNBbjldJO4OsMtbFcrkJf1WdcF7MU=; b=jKTCN8z4/UsXGdOi5JZCzSuXQP9EFPsGkVFaxoq836NakFtHJebbryAjW3IUPsLSaO Ekfx/W7hSRE/xaIg3YLnOeclp7kVW2Z5cVpCHxR4s4mr+dIzan6k2HdWZtgQlHP8JeGI FEPXk8aBsTCaJKzm8mYaM0qzRYL6EuETXfVuqb6nefnVonrqjLpt7GxwCL0UHCYLlV4f 2mNJ4khfeOrmOwxVTGrdH/cWxeApNJsMxF0ILZbOZRgfL2F+6bPTxn0K6La6wt33sUpl NTZd3exP5TH7XlM/lo0ic6zy/x1XEgnVEBEeIcUYt3ba+AQoeusvsGdLfcSH+GZxwDaV c5zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eRCQCEVghuAJDURNBbjldJO4OsMtbFcrkJf1WdcF7MU=; b=COP9wfGCwEhW4dOsWJAIytQa1thisxD+k9NuyeOmOx04PHnNz8AWqgq5ia9TiaI3Lf fBiNgDWGn2l4Pp1Iqo5urQQVrJhkpVuWcpCiEDCLDj8UzENxXusVwyXdfiBJB+BH5JIx S5NO1yxtGyhyVgzGgzA6UMJ9ks0/4pa6M9Cx7VM5RxrL8+0KPyty/lPV/7dk6PC7PUWA bc0giWsRlNZAQBe6rPf75taH8ojIpBPI4qPrkQWI77CQFH8XuOlKXIkn9W8GyEZoerwW QX2uPdsek0Asa5aFjSAXIV900SjUsnFKkgsp6mW5OQdyPBWuc5cnghl2jF0P7qPf33D6 KsXg== X-Gm-Message-State: AOAM530WG7WUA0ImQ13KZJMQ4UndulZSXD2Xn/CwmgT8qQNdT62g7ONe IHsqKhBnB0LAiEoo3ic9rtAhEOwPFPJqmoQUpfZ++HMM7RQohQ== X-Google-Smtp-Source: ABdhPJyI5GtzKDFg311jxjzQBsNPjl4WXROVD1tTQWrodedky2KNK8FIiG8S479Sxj86OT2a7CQDYy/DW5HrYBtepZ0= X-Received: by 2002:aca:5253:: with SMTP id g80mr14245332oib.98.1608643241694; Tue, 22 Dec 2020 05:20:41 -0800 (PST) MIME-Version: 1.0 References: <971cc41d-b30e-7fc1-25a2-4a63f028321d-at-ice-sa.com> In-Reply-To: <971cc41d-b30e-7fc1-25a2-4a63f028321d-at-ice-sa.com> From: Matthias Peng Date: Tue, 22 Dec 2020 21:20:30 +0800 Message-ID: To: =?UTF-8?Q?Andr=C3=A9_Warnier_=28tomcat=2Fperl=29?= Cc: modperl-at-perl.apache.org Subject: Re: [Hangout - NYLXS] Confused about two development utils X-BeenThere: hangout-at-nylxs.com X-Mailman-Version: 2.1.30rc1 List-Id: NYLXS Tech Talk and Politics List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0519614386==" Errors-To: hangout-bounces-at-nylxs.com Sender: "Hangout"
--===============0519614386== Content-Type: multipart/alternative; boundary="000000000000fdd74105b70d7071"
--000000000000fdd74105b70d7071 Content-Type: text/plain; charset="UTF-8"
Can I guess mod_perl is the upgraded version of apreq? Thanks Andre.
> On 22.12.2020 06:49, Matthias Peng wrote: > > Hello > > > > I am developing a simple mp2 application. > > I looked for the installation for mp2 utils, and found this two: > > > > libapache2-mod-perl2 > > > > libapache2-mod-apreq2 > > > > > > what're their relations? Should I install both, or only the first one? > > > > Hi. > > They are different and independent packages and module libraries, and you > can use the one > or the other, or both, depending on your needs. > (We always install both, and we use both) > > For mod_perl per se, you need only the /libapache2-mod-perl2/ package. > This gives you access to all the stuff documented here : > http://perl.apache.org/docs/2.0/api/index.html > > *except* what is at the very end of that page : > > "Part VI: Related Modules" -> libapreq modules > (this is what is contained in the separate /libapache2-mod-apreq2/ package) > The documentation for libapreq is at : > http://httpd.apache.org/apreq/docs/libapreq2/modules.html > > It may be a bit confusing at first, because both (independent) packages > use some common > namespaces ("Apache2::" and "APR::"), and because each of mod_perl and > libapreq2 have > their own form of "Apache Request object", named very similarly : > - for mod_perl it is Apache2::RequestRec > - for libapreq it is Apache2::Request > (I guess that libapreq was first, that's why they got the better name ;-) > > I am a bit reluctant to try explaining the difference further (for fear > of confusing you > further), but here is a very rough summary : > > - to deal with 99% of what has to do with controlling what happens within > Apache httpd in > terms of processing HTTP requests (or just to run your perl scripts > faster), use the > mod_perl package. > So install /libapache2-mod-perl2/ first, and start coding. > > - if you finds out later that you have to do a lot of processing of CGI > parameters (the > request "query string") or cookies, you can then install and use use the > libapreq API > which (among other things) provide an alternative to what the CGI module > provides. > > In any case, there is a bit of a learning curve, but it is great fun and > very powerful. > > > > >
--000000000000fdd74105b70d7071 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Can I guess mod_perl is the upgraded version of apreq? Th= anks Andre. mail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-l= eft:1ex"> On 22.12.2020 06:49, Matthias Peng wrote:
> Hello
>
> I am developing a simple mp2 application.
> I looked for the installation for mp2 utils, and found this two:
>
> libapache2-mod-perl2
>
> libapache2-mod-apreq2
>
>
> what're their=C2=A0relations? Should=C2=A0I install both, or only = the first one?
>
Hi.
They are different and independent packages and module libraries, and you c= an use the one
or the other, or both, depending on your needs.
(We always install both, and we use both)
For mod_perl per se, you need only the /libapache2-mod-perl2/ package.
This gives you access to all the stuff documented here :
r" target=3D"_blank">http://perl.apache.org/docs/2.0/api/index.html
*except* what is at the very end of that page :
"Part VI: Related Modules" -> libapreq modules
(this is what is contained in the separate /libapache2-mod-apreq2/ package)=
The documentation for libapreq is at :
=3D"noreferrer" target=3D"_blank">http://httpd.apache.org/apreq/docs/libapr= eq2/modules.html
It may be a bit confusing at first, because both (independent) packages use= some common
namespaces ("Apache2::" and "APR::"), and because each = of mod_perl and libapreq2 have
their own form of "Apache Request object", named very similarly :=
- for mod_perl it is Apache2::RequestRec
- for libapreq it is Apache2::Request
(I guess that libapreq was first, that's why they got the better name ;= -)
I am=C2=A0 a bit reluctant to try explaining the difference further (for fe= ar of confusing you
further), but here is a very rough summary :
- to deal with 99% of what has to do with controlling what happens within A= pache httpd in
terms of processing HTTP requests (or just to run your perl scripts faster)= , use the
mod_perl package.
So install /libapache2-mod-perl2/ first, and start coding.
- if you finds out later that you have to do a lot of processing of CGI par= ameters (the
request "query string") or cookies, you can then install and use = use the libapreq API
which (among other things) provide an alternative to what the CGI module pr= ovides.
In any case, there is a bit of a learning curve, but it is great fun and ve= ry powerful.
--000000000000fdd74105b70d7071--
--===============0519614386== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
--===============0519614386==--
--===============0519614386== Content-Type: multipart/alternative; boundary="000000000000fdd74105b70d7071"
--000000000000fdd74105b70d7071 Content-Type: text/plain; charset="UTF-8"
Can I guess mod_perl is the upgraded version of apreq? Thanks Andre.
> On 22.12.2020 06:49, Matthias Peng wrote: > > Hello > > > > I am developing a simple mp2 application. > > I looked for the installation for mp2 utils, and found this two: > > > > libapache2-mod-perl2 > > > > libapache2-mod-apreq2 > > > > > > what're their relations? Should I install both, or only the first one? > > > > Hi. > > They are different and independent packages and module libraries, and you > can use the one > or the other, or both, depending on your needs. > (We always install both, and we use both) > > For mod_perl per se, you need only the /libapache2-mod-perl2/ package. > This gives you access to all the stuff documented here : > http://perl.apache.org/docs/2.0/api/index.html > > *except* what is at the very end of that page : > > "Part VI: Related Modules" -> libapreq modules > (this is what is contained in the separate /libapache2-mod-apreq2/ package) > The documentation for libapreq is at : > http://httpd.apache.org/apreq/docs/libapreq2/modules.html > > It may be a bit confusing at first, because both (independent) packages > use some common > namespaces ("Apache2::" and "APR::"), and because each of mod_perl and > libapreq2 have > their own form of "Apache Request object", named very similarly : > - for mod_perl it is Apache2::RequestRec > - for libapreq it is Apache2::Request > (I guess that libapreq was first, that's why they got the better name ;-) > > I am a bit reluctant to try explaining the difference further (for fear > of confusing you > further), but here is a very rough summary : > > - to deal with 99% of what has to do with controlling what happens within > Apache httpd in > terms of processing HTTP requests (or just to run your perl scripts > faster), use the > mod_perl package. > So install /libapache2-mod-perl2/ first, and start coding. > > - if you finds out later that you have to do a lot of processing of CGI > parameters (the > request "query string") or cookies, you can then install and use use the > libapreq API > which (among other things) provide an alternative to what the CGI module > provides. > > In any case, there is a bit of a learning curve, but it is great fun and > very powerful. > > > > >
--000000000000fdd74105b70d7071 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Can I guess mod_perl is the upgraded version of apreq? Th= anks Andre. mail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-l= eft:1ex"> On 22.12.2020 06:49, Matthias Peng wrote:
> Hello
>
> I am developing a simple mp2 application.
> I looked for the installation for mp2 utils, and found this two:
>
> libapache2-mod-perl2
>
> libapache2-mod-apreq2
>
>
> what're their=C2=A0relations? Should=C2=A0I install both, or only = the first one?
>
Hi.
They are different and independent packages and module libraries, and you c= an use the one
or the other, or both, depending on your needs.
(We always install both, and we use both)
For mod_perl per se, you need only the /libapache2-mod-perl2/ package.
This gives you access to all the stuff documented here :
r" target=3D"_blank">http://perl.apache.org/docs/2.0/api/index.html
*except* what is at the very end of that page :
"Part VI: Related Modules" -> libapreq modules
(this is what is contained in the separate /libapache2-mod-apreq2/ package)=
The documentation for libapreq is at :
=3D"noreferrer" target=3D"_blank">http://httpd.apache.org/apreq/docs/libapr= eq2/modules.html
It may be a bit confusing at first, because both (independent) packages use= some common
namespaces ("Apache2::" and "APR::"), and because each = of mod_perl and libapreq2 have
their own form of "Apache Request object", named very similarly :=
- for mod_perl it is Apache2::RequestRec
- for libapreq it is Apache2::Request
(I guess that libapreq was first, that's why they got the better name ;= -)
I am=C2=A0 a bit reluctant to try explaining the difference further (for fe= ar of confusing you
further), but here is a very rough summary :
- to deal with 99% of what has to do with controlling what happens within A= pache httpd in
terms of processing HTTP requests (or just to run your perl scripts faster)= , use the
mod_perl package.
So install /libapache2-mod-perl2/ first, and start coding.
- if you finds out later that you have to do a lot of processing of CGI par= ameters (the
request "query string") or cookies, you can then install and use = use the libapreq API
which (among other things) provide an alternative to what the CGI module pr= ovides.
In any case, there is a bit of a learning curve, but it is great fun and ve= ry powerful.
--000000000000fdd74105b70d7071--
--===============0519614386== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
--===============0519614386==--
|
|