[Catalyst] request body

Andy Grundman andy at hybridized.org
Tue Dec 13 15:25:08 CET 2005


Eduardo Oliveros wrote:
> Hello,
> 
> I'm trying to obtain the request body. Using:
> $c->req->body
> what I get is /tmp/<file> (/tmp/jjGNHTcy2J), I think is a reference to 
> File::Temp
> 
> To actually get the body I have to use (accesing to the internal of the 
> request object):
> $c->req->{_body}->{buffer}
> 
> Any idea about the right way to get the request's body?

The body data is handled by the HTTP::Body module.  If you really need 
the raw body data, just read the $c->req->body filehandle.

-Andy



More information about the Catalyst mailing list