qt6windows7/tests/testserver/apache2/testdata/www/cgi-bin/echo.cgi
2023-10-29 23:33:08 +01:00

12 lines
278 B
Perl

#!/usr/bin/perl
if ($ENV{'REQUEST_METHOD'} eq "GET") {
$request = $ENV{'QUERY_STRING'};
} elsif ($ENV{'REQUEST_METHOD'} eq "POST") {
read(STDIN, $request, $ENV{'CONTENT_LENGTH'}) || die "Could not get query\n";
}
print "Content-type: text/plain\n\n";
print $request;