dorian wrote:

> It's dispalying the source rather than interpreting it. Interestingly 
> enough, if I change hello.plx to hello.pl (use perl.exe rather than the 
> ISAPI DLL) it displays correctly!  (When I view source I see the same html, 
> of course.)  When I run either script (pl or plx) from the command line I 
> see the same output (same as above).  So I can only assume that the ISAPI 
> DLL is spitting out an http header!?  It's never done this before and we've 
> been running perl5.6 for several years now. I'm running IIS 5 on Win2000, 
> btw. I rebooted the machine after I uninstalled 5.6 and installed 5.8. And I 
> just rebooted the web server.  Any suggestions about what to try next would 
> be appreciated.

No speaka IIS/ISAPI - me speaka Apache.

Are there any IIS config parameters that would affect it ?

Seems like maybe IIS is spitting out it's own content header.

Have you tried using LWP to GET the page and see what it's getting back ?

Try something like this (fill in your URL) :

use strict;
use warnings;
use LWP::UserAgent;
use LWP::Debug qw(level);
use Data::Dumper; $Data::Dumper::Indent=1;

my $debug = 1;
my $url = 'http://whatever/';           # FILL ME IN
LWP::Debug::level('+') if $debug;

my $ua = LWP::UserAgent->new(timeout => 30);
$ua->agent('Mozilla/4.0');
my $req = HTTP::Request->new(GET => $url);
my $res = $ua->request($req);
print Data::Dumper->Dump([$req], [qw($req)]) if $debug;
print Data::Dumper->Dump([$res], [qw($res)]) if $debug;
if ($res->is_error()) {
        printf "Error: %s\n", $res->status_line;
} else {
        my $ct = $res->content();
        print $ct;
}

__END__

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to