summaryrefslogtreecommitdiff
path: root/tests/docroot/www/get-post-len.pl
blob: bac8bbf8107b4c7fdb3dcfc9d89246ac21689496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl


print "Content-Type: text/plain\r\n\r\n";

if ($ENV{"REQUEST_METHOD"} eq "POST") {
	my $l = 0;
	while(<>) {
		$l += length($_);
	}
	print $l;
} else {
	print "0";
}