qt6windows7/tests/testserver/apache2/testdata/www/cgi-bin/echo.cgi

12 lines
278 B
Plaintext
Raw Normal View History

2023-10-30 06:33:08 +08:00
#!/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;