--- embedaddon/lighttpd/tests/docroot/www/cgi.pl 2013/10/14 10:32:47 1.1.1.1 +++ embedaddon/lighttpd/tests/docroot/www/cgi.pl 2016/11/02 10:35:00 1.1.1.2 @@ -1,4 +1,9 @@ -#! /usr/bin/perl +#!/usr/bin/env perl + +if ($ENV{"QUERY_STRING"} eq "internal-redir") { + print "Location: /cgi.pl\r\n\r\n"; + exit 0; +} print "Content-Type: text/html\r\n\r\n";