Excerpts from Jon Perkin's message of Wed Jan 20 08:31:21 -0500 2010:
> 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!

That isn't that unusual these days -- think of all the web APIs that speak
JSON, XML, etc.

> 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.

What does "non-standard request bodies" mean to you?  A content-type of
something other than application/x-www-form-urlencoded or form/multipart?

In any case, using Mason for this seems like using a tank to go to the grocery
store: most of Mason is for things you won't want, and Mason doesn't do things
that you do want (you need to go around it to get the request body if it isn't
a form).

Also, there's not a lot of space to carry your food.

If the above does not deter you, I think you want
http://perl.apache.org/docs/2.0/api/Apache2/RequestIO.html#C_read_

I'm not sure, though, since I avoid targetting mod_perl whenever possible.

hdp.

------------------------------------------------------------------------------
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