use FindBin '$Bin';
use lib "$Bin/lib";
-use Test::More tests => 5;
+use Test::More tests => 6;
use Catalyst::Test 'TestApp';
use HTTP::Request::Common;
is($response->content, 'foo:bar bar:baz', 'POST to CGI (form-data)');
+$response = request POST '/cgi-bin/test.cgi',
+ Content => [
+ foo => 1,
+ bar => 2,
+ baz => [
+ undef,
+ 'baz',
+ 'Some-Header' => 'blah',
+ 'Content-Type' => 'text/plain',
+ Content => 3
+ ],
+ ],
+ 'Content-Type' => 'form-data';
+
+is($response->content, 'foo:1 bar:2 baz:3', 'POST with file upload');
+
$response = request '/cgi-bin/test_pathinfo.cgi/path/%2Finfo';
is($response->content, '/path/%2Finfo', 'PATH_INFO is correct');