[Catalyst] $c->req->body oddity

Ian Docherty catalyst at iandocherty.com
Sat Jan 26 14:30:17 GMT 2008


I am sending a POST to a Catalyst app and according to the documention I 
expected the request body to
contain the data I sent. Instead it holds a filename in the tmp 
directory which contains the document. Is
this an expected behaviour?

e.g. in my test script

my $request = HTTP::Request->new(POST => 'http://linux:3000/svc/to/1001');
$request->content_type('text/text');
$request->content('THIS IS THE STRING');
my $response = $ua->request($request);


If I look at the value in $c->request->body in my controller I get 
something
like '/tmp/LEVo4ciz1g'

And if I look at the content of the temp file I find my 'THIS IS THE 
STRING'
text.

Is this a document problem or something else?

Regards
Ian



More information about the Catalyst mailing list