Sounds to me like an API stuff.

Have a look at Apache2::REST:
http://code.google.com/p/apache2rest/

You'll be able to ack it to include your own request body decoder if
you need to, and you can output any format your like. xml,json,yaml
and.. perl are included by default, but you can implement your own
response writer.

J.

2010/1/20 Joe Pepersack <j...@pepersack.net>:
> The obvious question (to me) is if you're not making standard HTTP
> requests and not serving HTML, why use Apache at all?  You might be better
> off writing your own custom server.
>
> Refer to chapters 17 and 18 of the Perl Cookbook (especially example
> 17.5), as well as example 19.6 in chapter 19.
>
>> Hi all.
>>
>> I'm working on a rather unusual web site in that the client software isn't
>> actually a web browser and doesn't understand HTML!  I'm planning to use
>> Mason on Apache2/mod_perl2, which I've used on other projects with great
>> success.
>>
>> However, the client will be making requests to the server with
>> non-standard request bodies, so I'd like to know what is the best way in
>> Mason on mod_perl2 to access the raw content of the request. It isn't
>> obvious to me from either Mason or mod_perl2 documentation.
>>
>> I'm currently using CGI.pm, but could change to using Apache2::Request if
>> needed.
>>
>> Cheers, Jon.
>>
>> ------------------------------------------------------------------------------
>> Throughout its 18-year history, RSA Conference consistently attracts the
>> world's best and brightest in the field, creating opportunities for
>> Conference
>> attendees to learn about information security's most important issues
>> through
>> interactions with peers, luminaries and emerging and established
>> companies.
>> http://p.sf.net/sfu/rsaconf-dev2dev_______________________________________________
>> Mason-users mailing list
>> Mason-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mason-users
>>
>
>
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
>



-- 
Jerome Eteve.
http://www.eteve.net
jer...@eteve.net

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to