9 use Test::More tests => 5;
11 use Catalyst::Test 'TestApp';
12 use HTTP::Request::Common;
14 my $response = request POST '/cgi-bin/test.cgi', [
19 is($response->content, 'foo:bar bar:baz', 'POST to CGI');
21 $response = request POST '/cgi-bin/test.cgi', [
24 ], 'Content-Type' => 'form-data';
26 is($response->content, 'foo:bar bar:baz', 'POST to CGI (form-data)');
28 $response = request '/cgi-bin/test_pathinfo.cgi/path/%2Finfo';
29 is($response->content, '/path/%2Finfo', 'PATH_INFO is correct');
31 $response = request '/cgi-bin/test_filepathinfo.cgi/path/%2Finfo';
32 is($response->content, '/test_filepath_info/path/%2Finfo',
33 'FILEPATH_INFO is correct (maybe)');
35 $response = request '/cgi-bin/test_scriptname.cgi/foo/bar';
36 is($response->content, '/cgi-bin/test_scriptname.cgi',
37 'SCRIPT_NAME is correct');