cgi redirect does not pass through parameters on IIS

Posted by on 2016-06-09 09:24

When I issue the following directive:
use CGI qw(:all);
use CGI::Session();
$app="this one";

$q = new CGI;
print $q->redirect(-uri=>"/cgi-bin/mmb_details.cgi?app=$app&userid=$userid&func=$func&title=Edit%20User",

The called cgi script does not get any of the arguments. It works fine under apache (the server it used to reside on) but doesn't work with IIS (Server 2012 R2, IIS version 8.5.9600 16384).

If I use a browser and pass in that URI it works fine. I can't figure out what setting in IIS I need to set to allow this to happen.