mod-perl 2.0 and CGI.pm

2002-06-26 Thread Kent, Mr. John

Greetings,

Tried to run some benchmarking tests on a cgi generated web page comparing a
light and heavy server.
ab worked fine when testing the script run by the Apache 2.0.39 light server

ab reported failure when testing the same script running on Apache
2.0.40-dev with mod-perl 1.99

Both worked and looked fine when viewed via a browser.

Looking at the source code for each page via the browser I found that the
only difference between
the pages was that the first couple of lines in the mod-perl enabled server
where

?xml version =1.0 encoding=iso-8859-1
!DOCTYPE html

while the first line of the page served by the light server is just
!DOCTYPE html

The cgi script which generates the page has in it

use CGI '-no_xhtml';


In my /conf/startup.pl script for the mod-perl server I tried

use CGI '-no_xhtml';
CGI-compile(':all');

But that didn't stop the xml line from showing up.

So two questions:

Why does ab break when it sees ?xml version ... as the first line  (IF that
is the problem)? and
How do I get the mod-perl server to honor use CGI '-no_xhtml';  ?

Thank you,
John Kent
Webmaster
Naval Research Laboratory
Monterey, CA
http://kauai.nrlmry.navy.mil







Re: mod-perl 2.0 and CGI.pm

2002-06-26 Thread Stas Bekman

Kent, Mr. John wrote:
 Greetings,
 
 Tried to run some benchmarking tests on a cgi generated web page comparing a
 light and heavy server.
 ab worked fine when testing the script run by the Apache 2.0.39 light server
 
 ab reported failure when testing the same script running on Apache
 2.0.40-dev with mod-perl 1.99

any luck with ab from 2.0.40? I've just done some testing with CGI.pm 
(it was printing the whole set of xml headers) and it seems to be fine 
(with ab from 1.3 and 2.0). Care to send a *short* script that 
represents the problem?

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com