On Wed, 24 Oct 2007, Lev Lvovsky wrote:
On Oct 24, 2007, at 4:31 PM, Randy Kobes wrote:The code in CGI::Apache2::Wrapper: http://cpan.uwinnipeg.ca/htdocs/CGI-Apache2-Wrapper/CGI/Apache2/Wrapper.pm.html#Apache2_URI provides a CGI-compatible url() method based on Apache2::URI: http://cpan.uwinnipeg.ca/htdocs/mod_perl/Apache2/URI.htmlHi Randy, thanks for the reference. Is there no other way to get these same results via the CGI.pm package? I would be a lot more eager to use the Wrapper package if there was some sort of explanation as to why CGI.pm doesn't work in it's current state - we're using the CGI package in a lot of our code, and I'm not sure that the Wrapper package has all of the backwards compatibility that we need.
I misunderstood your question - I thought you were trying to do this just under mod_perl, without CGI.pm. The CGI::Apache2::Wrapper package and CGI.pm are intended to give the same results, assuming the tests pass: http://search.cpan.org/src/RKOBES/CGI-Apache2-Wrapper-0.21/t/response/TestCGI/misc.pm If none of the CGI.pm options to url() give what you need,you may want to ask the author of CGI.pm, Lincoln Stein, about the background for the present behavior.
-- best regards, Randy
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.