sorry guys, seems this problem only happens on the the IIS machine. that is
I fire up IE on the IIS machine. I access the scripts from another machine
and everything works great. so i guess it's not a big deal. still it would
be nice to know what's happening with this weirdness.
> -----Original Message-----
> From: Leong, WK
> Sent: Thursday, December 21, 2000 11:42 AM
> To: '[EMAIL PROTECTED]'
> Subject: strange behaviour with CGI.pm and vnd.ms-excel
>
> 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