this is a problem I'm hitting when porting scripts from apache(linux) to
IIS(NT4). I need NT for the OLE automation with Excel.

my parameters disappear when i use the application/vnd.ms-excel MIME type.
following are stripped down code segments that illustrate the problem. note
that the code segments work as expected under apache.

this first code segment works fine and $stuff contains whatever was posted.

use CGI;
my $query = new CGI;
my $stuff = $query->param('stuff');
open(F,">stuff.log") || die;
print F "stuff is $stuff\n";
close(F);
print $query->header(
  -type=>'text/plain'           # this is the only difference
);
print "stuff is $stuff\n";
exit;

in the following code segment, $stuff is blank regardless of what was
posted.

use CGI;
my $query = new CGI;
my $stuff = $query->param('stuff');
open(F,">stuff.log") || die;
print F "stuff is $stuff\n";
close(F);
print $query->header(
  -type=>'application/vnd.ms-excel'       # this is the only difference
);
print "stuff is $stuff\n";
exit;

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to