Re: Raw header and body of HTTP request

2004-08-19 Thread Honza Pazdziora
On Wed, Aug 18, 2004 at 04:59:09PM +0200, Honza Pazdziora wrote: > > I have httpd-apreq / Apache::Request in my setup, in fact what I do > is basically > > use Apache::Request (); > my $request = Apache::Request->new($r); > if ($r->method eq 'POST') { > # process $

Re: Raw header and body of HTTP request

2004-08-18 Thread Joe Schaefer
Joe Schaefer <[EMAIL PROTECTED]> writes: > Be sure you've got > > use Apache::RequestRecIO; ^^^ Sorry, typo- should be Apache::RequestIO. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html Li

Re: Raw header and body of HTTP request

2004-08-18 Thread Joe Schaefer
Honza Pazdziora <[EMAIL PROTECTED]> writes: [...] > and it works great. However, I'm probably missing something but how > do you do equivalent of $r->read($buffer, 64_000) multiple times? Be sure you've got use Apache::RequestRecIO; somewhere, and everything should work just fine. If not,

Re: Raw header and body of HTTP request

2004-08-18 Thread Honza Pazdziora
On Wed, Aug 18, 2004 at 09:53:17AM -0400, Geoffrey Young wrote: > > hi honza, a flash from the past :) Past flash stuck here between POSTs, GETs, SOAPs, etc. ;-) > > Is there any way to retrieve the raw content (and headers) of the > > HTTP request in mod_perl2, and have this raw access coexist

Re: Raw header and body of HTTP request

2004-08-18 Thread Geoffrey Young
>>I'm using Apache2, mod_perl2. I use Apache::Request, so that I can get >>to ->args and ->body data easily. > see the httpd-apreq project (aka libapreq, Apache::Request, mod_apreq). eesh, I think I need to read these messages a but more closely next time ;) sorry. --Geoff -- Report problem

Re: Raw header and body of HTTP request

2004-08-18 Thread Joe Schaefer
Honza Pazdziora <[EMAIL PROTECTED]> writes: > I'm using Apache2, mod_perl2. I use Apache::Request, so that I can get > to ->args and ->body data easily. > > At the same time, I would sometimes need to get the raw body data. If the body data is getting lost when you use Apache::Request in mp2, th

Re: Raw header and body of HTTP request

2004-08-18 Thread Geoffrey Young
Honza Pazdziora wrote: > Hello, hi honza, a flash from the past :) > > I'm using Apache2, mod_perl2. I use Apache::Request, so that I can get > to ->args and ->body data easily. > > At the same time, I would sometimes need to get the raw body data. For > example, an application may process bo

Raw header and body of HTTP request

2004-08-18 Thread Honza Pazdziora
Hello, I'm using Apache2, mod_perl2. I use Apache::Request, so that I can get to ->args and ->body data easily. At the same time, I would sometimes need to get the raw body data. For example, an application may process both application/x-www-form-urlencoded and SOAP requests. However, once the d