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

2003-12-08 Thread Stas Bekman
Andrew Maltsev wrote: 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 getting filehandle ($r->connection->fileno(0)), rewinding

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 getting > > filehandle ($r->connection->fileno(0)), rewindin

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

2003-12-08 Thread Stas Bekman
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 getting filehandle ($r->connection->fileno(0)), rewinding it and reading again -- that works in http, but does not in https requests. Can't d

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 application does not use Apache::Registry, it

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

2003-12-08 Thread Stas Bekman
Andrew Maltsev wrote: 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 referenc

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

2003-12-08 Thread Geoffrey Young
Andrew Maltsev wrote: > 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 p

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