File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / tests / docroot / www / get-post-len.pl
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:47 2013 UTC (10 years, 9 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_35p0, v1_4_35, v1_4_33, HEAD
1.4.33

#!/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";
}


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>