File: 05_long_key_names_values.t

package info (click to toggle)
libfcgi-client-perl 0.09-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 232 kB
  • sloc: ruby: 510; perl: 408; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use warnings;
use Test::More;
use lib 't/lib/';
use t::Internal;

my $client = t::Internal->new(path => 't/fcgi/hello.fcgi');
my ( $stdout, $stderr ) = $client->request(
    +{
        REQUEST_METHOD => 'GET',
        QUERY_STRING   => 'foo=' . ('0' x 125),
        'HTTP_X_FOO' . ('0' x 125) => 1,
    },
    ''
);
is $stdout, "Content−type: text/html\r\n\r\nhello\nfoo=".('0'x125);
is $stderr, "hello, stderr\n";

done_testing;