Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DE753D660 for ; Wed, 22 Aug 2012 11:34:50 +0000 (UTC) Received: (qmail 52773 invoked by uid 500); 22 Aug 2012 11:34:49 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 52278 invoked by uid 500); 22 Aug 2012 11:34:43 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 52240 invoked by uid 99); 22 Aug 2012 11:34:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 11:34:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,T_FRT_CONTACT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [80.149.113.165] (HELO tcmail13.telekom.de) (80.149.113.165) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 11:34:34 +0000 Received: from he111296.emea1.cds.t-internal.com ([10.125.90.14]) by tcmail11.telekom.de with ESMTP/TLS/AES128-SHA; 22 Aug 2012 13:34:14 +0200 Received: from HE113559.emea1.cds.t-internal.com (10.125.65.101) by HE111296.EMEA1.CDS.T-INTERNAL.COM (10.125.90.14) with Microsoft SMTP Server (TLS) id 8.3.245.1; Wed, 22 Aug 2012 13:34:13 +0200 Received: from HE113566.emea1.cds.t-internal.com ([169.254.2.168]) by HE113559.emea1.cds.t-internal.com ([2002:7cd:4165::7cd:4165]) with mapi; Wed, 22 Aug 2012 13:34:13 +0200 From: To: Date: Wed, 22 Aug 2012 13:33:45 +0200 Subject: AW: Mod_Perl2 getting started Thread-Topic: Mod_Perl2 getting started Thread-Index: Ac2APe/QD/7Op08sSoWZ5oNalq7BMAAHA1pw Message-ID: References: , <5033F9FB.3606.511D0EC9@randolf.modperl.pl>,<50349444.4050905@ibson.com> In-Reply-To: <50349444.4050905@ibson.com> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 http://perl.apache.org/docs/1.0/guide/porting.html -- Deutsche Telekom AG Seamless ICT Security Infrastructure & Management im Auftrag T-Systems International GmbH Dipl. Inf Alexander Elgert Langwadener Strasse 17 64625 Bensheim +49 176 22 717 661 (Mobil) +49 671 83419-12 (Tel) +49 671 83419-30 (Fax) E-Mail: alexander.elgert@gmx.de ________________________________________ Von: Keywan Ghadami [k.ghadami@ibson.com] Gesendet: Mittwoch, 22. August 2012 10:11 An: modperl@perl.apache.org Betreff: Re: Mod_Perl2 getting started Hi Joe, have also a look at Frameworks and Interfaces like PSGI or Catalyst. They provide a more generic way to do these things: "parsed request, handles args as querystrings and Post data, uploads a file= or two, and returns an html page to the requestor" that way you can use mod_perl in the background wich give you the flexibili= ty to switch to other Interfaces (e.g. fcgi) and servers on need. best regards keywan Am 21.08.2012 23:13, schrieb Randolf Richardson: Hi, I=B4m finding the online documentation regarding mod_perl2 confusing with regards to all the various modules dealing with request structures etc= : APR::Request, Apache2::Request, Apache2::RequestRec, Apache2::Upload, etc. Does anyone know of a tutorial or example code that sorts these out? Ideally a simple one module working code response handler that illustrates = access to the parsed request, handles args as querystrings and Post data, uploads a file = or two, and returns an html page to the requestor. Anyone have something like = that? Thanks very much in advance, Joe N Hi Joe. I wrote one guide that has helped a few people get started= : http://www.modperl.pl/how-to/ It's still a work-in-progress, and although it doesn't show you everything that you're asking for, it will get you started. Accessing query strings is covered in the Apache::Request module documentation -- "param" is the keyword to search for. I recommend that you develop a clear understanding of how this works before tackling file uploads, because it will make the learning process with regard to handling file uploads a lot easier. Randolf Richardson - randolf@inter-corporate.com Inter-Corporate Computer & Network Services, Inc. Beautiful British Columbia, Canada http://www.inter-corporate.com/ -- Keywan Ghadami Entwicklung ibson Fritz-Arnold-Str. 23 78467 Konstanz Tel.: +49 (0)75 31 / 81 39 7 93 Fax: +49 (0)75 31 / 81 39 7 89 E-Mail: info@ibson.com Web: www.ibson.com QuickLinks: Produkte | L=F6sungen | Services & Support |= News | Kunden & Referenzen | Kontakt Diese E-Mail enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte Informa= tionen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt=FC= mlich erhalten haben, informieren Sie bitte sofort den Absender und vernich= ten Sie diese E-Mail. Das Kopieren sowie die Weitergabe dieser E-Mail ist n= icht gestattet. This E-Mail contains confidential and/or legally protected information. If = you are not the correct addressee or have received this E-Mail erroneously,= please inform the sender immediately and delete this E-Mail. The copying a= s well as the transmitting of this E-Mail is not permitted