Re: coderef as arg to $r->custom_response(...)

2000-02-09 Thread brian moseley
On Wed, 9 Feb 2000, Matt Sergeant wrote: > Can you do an internal redirect and stuff things in > pnotes/notes? haven't tried it but dont see why not. you'd just have to use $r->prev->pnotes inside the second request. we actually use err_headers_out in our webmail, but that code was written befo

Re: coderef as arg to $r->custom_response(...)

2000-02-09 Thread Randal L. Schwartz
> "Matt" == Matt Sergeant <[EMAIL PROTECTED]> writes: >> So, I'm punting. When I get an error, I have to redirect to a URL, >> which then has to start all over figuring out why they were sent >> there. Which is not totally bad, because I have to ask the user some >> questions in a form, and

Re: coderef as arg to $r->custom_response(...)

2000-02-09 Thread Tom Mornini
On Wed, 9 Feb 2000, Matt Sergeant wrote: > > And for those following along, after further study in the source, it > > looks like custom_response can be only one of three things: a string, > > an internal URL (internal redirect) or an external URL (external > > redirect on error). Same thing as a

Re: coderef as arg to $r->custom_response(...)

2000-02-09 Thread Matt Sergeant
On Wed, 09 Feb 2000, Randal L. Schwartz wrote: > > "Bill" == Bill Jones <[EMAIL PROTECTED]> writes: > > >> From: [EMAIL PROTECTED] (Randal L. Schwartz) > >> The docs hint that I can use whatever I would put after ErrorDocument > >> as the arg to custom_response, but also suggest that I can pu

Re: coderef as arg to $r->custom_response(...)

2000-02-09 Thread Randal L. Schwartz
> "Bill" == Bill Jones <[EMAIL PROTECTED]> writes: >> From: [EMAIL PROTECTED] (Randal L. Schwartz) >> The docs hint that I can use whatever I would put after ErrorDocument >> as the arg to custom_response, but also suggest that I can put "a >> module" there. Does that mean it's the same styl

Re: coderef as arg to $r->custom_response(...)

2000-02-09 Thread Bill Jones
> From: [EMAIL PROTECTED] (Randal L. Schwartz) > The docs hint that I can use whatever I would put after ErrorDocument > as the arg to custom_response, but also suggest that I can put "a > module" there. Does that mean it's the same style of argument as a > ->pushhandler(), where I can also put

Re: coderef as arg to $r->custom_response(...)

2000-02-09 Thread Aaron Ross
hi! > > I'm trying to write a custom Auth/Authz handler, and want to handle > the failure within my module as well, sharing some variables that I've > already determined during the failure. I can't output content during > the Authz phase (or can I?), so I need to set up a very custom > handler.

coderef as arg to $r->custom_response(...)

2000-02-08 Thread Randal L. Schwartz
The docs hint that I can use whatever I would put after ErrorDocument as the arg to custom_response, but also suggest that I can put "a module" there. Does that mean it's the same style of argument as a ->pushhandler(), where I can also put a coderef? I'm trying to write a custom Auth/Authz han