pure fileless requests

2004-11-05 Thread Andrew Maltsev
Hello, I use PerlTransHandler to decide if I want to intercept and serve a request or not. When the request is served by my content handler there is no file that corresponds to it, directly or indirectly. I used to just not call $r->filename(...) at all. But under Gentoo's overtightened default

Re: mod_perl 1.x, getting POST'ed content

2003-12-08 Thread Andrew Maltsev
On Mon, Dec 08, 2003 at 12:31:59PM -0800, Stas Bekman wrote: > Andrew Maltsev wrote: > [...] > >>Slurp STDIN before you call CGI->new() into an IO::String object, > > > > > > Can't. I get references to $cgi and $r, that's given. I tried ge

Re: mod_perl 1.x, getting POST'ed content

2003-12-08 Thread Andrew Maltsev
On Mon, Dec 08, 2003 at 11:42:43AM -0800, Stas Bekman wrote: > Andrew Maltsev wrote: > > So far I can only see customizing CGI.pm to make it save original > > POST'ed content. > > If Geoff's module doesn't work for you, you could do the following: The appli

mod_perl 1.x, getting POST'ed content

2003-12-08 Thread Andrew Maltsev
Here is the situation. There is sort of web service (Ariba buyer for those who cares) that posts plain unencoded XML using POST method to a mod_perl 1.x application. Somewhere at the very top the application does use CGI; my $cgi=CGI->new(); and then passes this $cgi reference around. Assuming t

converting to 2.0, push_handlers question

2003-12-03 Thread Andrew Maltsev
I'm having some problems converting a 1.x mod_perl application to 2.x mod_perl. I use redhat 9, mod_perl-1.99_07-5 rpm, httpd-2.0.40-21.5 rpm, perl 5.8.0, pre-fork mpm. The way the application works is that it installs a TransHandler to decide if it needs to bother handling content (based on uri

Porting 1.x -> 2.x, some weird results

2003-12-01 Thread Andrew Maltsev
Here is the setup: mod_perl2: redhat 9, mod_perl-1.99_07-5 rpm, httpd-2.0.40-21.5 rpm, perl 5.8.0, pre-fork mpm. mod_perl1: redhat 7.1, mod_perl 1.26, httpd 1.3.22, perl 5.6.1. I am having some problems porting an application from mod_perl1 to mod_perl2. The application installs a PerlTransHand