Re: Cloning the request object

2001-09-10 Thread darren chamberlain

Alin Simionoiu [EMAIL PROTECTED] said something to this effect on 09/09/2001:
 I forgot to mention that I'm trying to inspect the body in a
 authentication handler.  As soon as a get the body, the body is
 gone.

So save the body.  Put it into pnotes or something:

sub handler {
my $r = shift;
my $stuff = $r-content;  # or however you get the body during
  # an auth handler...
do_stuff($stuff);

$r-pnotes('AuthBody', $stuff);

return OK;
}

Then the body is available as $r-pnotes('AuthBody');

(darren)

-- 
The bad reputation UNIX has gotten is totally undeserved, laid on by
people who don't understand, who have not gotten in there and tried
anything.
-- Jim Joyce, owner of Jim Joyce's UNIX Bookstore



Re: Cloning the request object

2001-09-09 Thread Alin Simionoiu

I forgot to mention that I'm trying to inspect the body in a authentication
handler.
As soon as a get the body, the body is gone.


- Original Message -
From: Steven Lembark [EMAIL PROTECTED]
To: Alin Simionoiu [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, September 08, 2001 5:39 PM
Subject: Re: Cloning the request object




 -- Alin Simionoiu [EMAIL PROTECTED]

  Hi there,
 
  Those anybody know if is possible to clone the apache request object?.
  I'm trying to write a Apache module that do some basic validation
against
  the request parameters.
  But as soon as a touching the request is gone.
  any other posibilities?

 I've never had problems with:

 sub handler
 {
 my $request = shift;

 foo $request or croak foo doesn't like you!;
 ...
 }

 sub foo
 {
 my $request = shift;
 ...
 }

 --
 Steven Lembark   2930 W.
Palmer
 Workhorse Computing   Chicago, IL
60647
 +1 800 762
1582





Cloning the request object

2001-09-08 Thread Alin Simionoiu

Hi there,

Those anybody know if is possible to clone the apache request object?.
I'm trying to write a Apache module that do some basic validation against
the request parameters.
But as soon as a touching the request is gone.
any other posibilities?

thank's
alin





Re: Cloning the request object

2001-09-08 Thread Steven Lembark



-- Alin Simionoiu [EMAIL PROTECTED]

 Hi there,

 Those anybody know if is possible to clone the apache request object?.
 I'm trying to write a Apache module that do some basic validation against
 the request parameters.
 But as soon as a touching the request is gone.
 any other posibilities?

I've never had problems with:

sub handler
{
my $request = shift;

foo $request or croak foo doesn't like you!;
...
}

sub foo
{
my $request = shift;
...
}

--
Steven Lembark   2930 W. Palmer
Workhorse Computing   Chicago, IL 60647
+1 800 762 1582