Philip Mak wrote:

> I tried telneting to your web server to see what's going on. Look at this:
> 
> $ telnet www.nonserviam.net 80
> Trying 65.34.152.103...
> Connected to nonserviam.net.
> Escape character is '^]'.
> GET /modperl/index.pl HTTP/1.1
> Host: www.nonserviam.net
> 
> Hello!Connection closed by foreign host.
> 
> The HTTP server did not return a proper HTTP header, which is why lynx
> doesn't like it.
> 
> Looking at your mod_perl configuration...
> 
>>    PerlSendHeader Off
> 
> 
> Try doing it with PerlSendHeader On. You also might need to add this line
> at the beginning of your script:
> 
> print "Content-type: text/plain\n\n";
> 
> (or text/html)
> 
> 
Thanks a million.  I'm having one of those saturdays :-)  It works like 
a champ, of course.  I guess the only thing I don't understand is why 
with PerlSendHeader Off, isnt the webserver supposed to send headers?  
Does it not because it doesn't know what kind of content a .pl file is?  
In that case, shouldn't it send DefaultType (text/plain) ?

Thanks again, I'm going to run autobench again and see if we get better 
results :)


Reply via email to