sukria/Dancer — Issue #727: POST bodies are being lost.
Author: neniu
Created: 2012-01-13 17:02:28+00:00
State: open

This (http://pastebin.com/RjXkb149) is a Data::Dumper->Dumper output of an HTTP reply from a Dancer application.
Note carefully the content-length of 12388 which is the same as the size of the file whose contents were sent as the request body.
Note also the 'body' attribute of the _http_body element which is 'undef'.
It should not be undef, it should be a string 12388 bytes in size.

The code that made the request is essentially

```perl
# Make the user agent.
my $ua = LWP::UserAgent->new();
$ua->agent( "$0/0.0000001" );

# Make the request.
my $req = HTTP::Request->new( POST => $data_post );
$req->content_type( 'text/xml' );
$req->content( $body );

# Get back the response.
my $resp = $ua->request( $req );

print Dumper( $resp );
```
Now, if you will excuse me, I need to write a single purpose web server because Dancer can't get this right.