Josh Chamas writes:

I did this hack for Apache::ASP so that people could more easily port
CGI script by just wrapping <% %> around them. Since Apache::ASP calls
read() and consumes the input, I don't see how I could get it to work
with Apache::Request, but I am not sure it is something developer.


One work around for those having problems with CGI might be to use
this API instead:


$query = new CGI(\*STDIN);

Scott, does this work for your situation? Can you get the Apache::ASP
examples to work with this change on your installation?


Regards,

Josh
________________________________________________________________________
Josh Chamas, Founder | NodeWorks - http://www.nodeworks.com
Chamas Enterprises Inc. | NodeWorks Directory - http://dir.nodeworks.com
http://www.chamas.com | Apache::ASP - http://www.apache-asp.org



When I try what you suggested in the Apache::ASP cgi.htm example, I get
a runaway httpd process that consumes around 90% of the CPU and no ouput returned to the browser. The last lines that appears in the Apache error log are:


[error] [asp] [3813] [debug] [1079816560.7241;0.0015] [cgi.htm] - Script_OnStart /var/www/asp/eg/cgi.htm in global.asa
[error] [asp] [3813] [debug] [1079816560.7247;0.0006] executing CODE(0x85d92e8)


This example uses CGI this way:
use CGI qw(:standard);


When I try what you suggested in the real Apache::ASP application that I want to work, the ISP customer management software package Freeside,
http://www.sisd.com/freeside/, I get:


[error] [asp] [2098] [error] Can't locate object method "READLINE" via package "Apache::ASP::Request" at /usr/lib/perl5/5.8.3/CGI.pm line 510. <--> , /usr/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 1518

This code uses CGI this way:
use CGI;


where:
$query = new CGI(\*STDIN);


is called in the Script_OnStart method of the application's global.asa file.
Both of these tests were done with Apache::ASP 2.57 and CGI 3.04.


Do you have any other suggetsions?

--
Scott Langley
[EMAIL PROTECTED]
Systems Administrator
Rural Network Services


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to