[set a relevant subject]

Josh Chamas wrote:
[EMAIL PROTECTED] wrote:
 >

Does modperl-1.0 also need to have its read functions rewritten in a similar way?
I ask because Apache::ASP and CGI.pm no longer work happily together since CGI.pm version 3.01. That is to say, the Apache::ASP example for demonstrating CGI-compatibility:
http://www.apache-asp.org/eg/source.asp?file=cgi.htm
never returns data entered into the form because CGI.pm's param() function always returns empty.



Note that in order to get CGI to work with Apache::ASP, I retied STDIN to the Apache::ASP $Request object. So if CGI is doing something smart, like going to the Apache request read() method directly, then that would not work with Apache::ASP.

Yes, that's what it does since 3.01.


If CGI can revert to reading from STDIN when it detects that it is running
under Apache::ASP->handler(), that would probably be one type of fix here
assuming that its trying to use the Apache read() directly.

The issue in particular is that one can only do Apache->request->read()
once, so Apache::ASP caches the input, and allows access to it via a
newly tied STDIN to work with CGI.pm

Lincoln might be not very happy to add yet another special case (though you should ask him of course). Perhaps the easier transparent solution is to have Apache::ASP override $r->read()? After all CGI.pm is probably not the only module that will have this problem under A-ASP.


Also check what happens to Apache::ASP with Apache::Request 2, which also consumes the input body. Sounds like the two modules might be unhappy with each other.

__________________________________________________________________
Stas Bekman            JAm_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

--
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