I originally implemented a REST interface to my web application using the mod_rewrite rule and this worked fine for GET operations (list available projects, show project detail) but did not work for POST operations (upload a file to a project). Since I used the CGI::Application framework to build the web app, I thought I'd use CGI::Application::Plugin::Apache::Request to create a request handler as an alternative solution.
This module requires Apache2::Request, a module I'm not familiar with. Among many other things, the documentation says
Apache2::Upload is now a separate module. Applications requiring the upload API must use Apache2::Upload in 2.X. ..
This is a potential problem, because my web application already happily does file uploads using
CGI.
Well, I gave the module a shot anyway, and using cpan install Apache2::Request the process died with
build/version_check.pl failed: \
no version_string found in '' for 'apache2'.
at the end. I'm not really sure what this means. I have Apache 2.2.3 installed:
[Thu Jan 03 13:02:12 2008] [info] Server: Apache/2.2.3, \
Interface: mod_ssl/2.2.3, Library: OpenSSL/0.9.8b
so I believe I have everything I need .. but it seems my environment isn't right. Thoughts?
Alex / talexb / Toronto
"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.