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
flexibility 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´m 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 -rand...@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: i...@ibson.com <mailto:i...@ibson.com>
Web: www.ibson.com <http://www.ibson.com/>
QuickLinks: Produkte <http://www.ibson.com/Produkte> | Lösungen
<http://www.ibson.com/Loesungen> | Services & Support
<http://www.ibson.com/Services> | News <http://www.ibson.com/News> |
Kunden & Referenzen <http://www.ibson.com/Referenzen> | Kontakt
<http://www.ibson.com/Kontakt>
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese E-Mail. Das Kopieren sowie die
Weitergabe dieser E-Mail ist nicht 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 as well as the transmitting of this E-Mail is not
permitted