Passing data from ConnectionHandler to a ProtocolHandler ..

2002-09-25 Thread Sylbert L
Hi, I need to modify the request object before it is handed over to a protocol handler. I'm using 2.0, so suppose I implement a Connection Handler, within which i read from the socket directly .. modify the data read, now how do I pass on this modified data to the Protocol Handler ? Tx

Re: Passing data to subrequests

2001-04-08 Thread G.W. Haywood
Hi there, On Fri, 6 Apr 2001, Joachim Zobel wrote: > Is content negotiation somehow uncool? I could not find an > Apache::Negotiate to interface with mod_negotiate and its remarkably > little discussed. Probably because whatever the results of the negotiation, Internet Exploder will probably ig

Passing data to subrequests

2001-04-06 Thread Joachim Zobel
Hi. I still think about a way to use content negotiated templates. My favourite solution is now to make my template filler a content handler for the template direktory. The problem is to pass the data the handler should fill in. How do I pass larger data structures to a subrequest? Is there a

Re: Passing data among handlers

2001-02-05 Thread Perrin Harkins
Drew Taylor wrote: > > I have a slightly different twist on this question. We run Registry scripts on > our site for debugging purposes. I would love to have a module for saving > variables/data structures on a per-request basis (like the current Apache > notes), but internally using pnotes under

Re: Passing data among handlers

2001-01-31 Thread darren chamberlain
Drew Taylor ([EMAIL PROTECTED]) said something to this effect on 01/30/2001: > I have a slightly different twist on this question. We run Registry > scripts on our site for debugging purposes. I would love to have a > module for saving variables/data structures on a per-request basis > (like the c

Re: Passing data among handlers

2001-01-30 Thread Piers Cawley
Robert Landrum <[EMAIL PROTECTED]> writes: > I've never tried this, but you could store things into main using > one handler and retrieve them with another, provided that you > cleaned up afterward. If, for any reason you failed to cleanup, the > server would leak memory... not that it doesn't al

Re: Passing data among handlers

2001-01-30 Thread Barry Hoggard
I'm not sure what we're doing is very applicable. Ours is meant to be used in HTML::Mason, so that the object is passed as an argument to any mason components that need it. I wanted to have a definitive list of methods, rather that let people just stick things into pnotes whenever they felt like

Re: Passing data among handlers

2001-01-30 Thread Drew Taylor
I have a slightly different twist on this question. We run Registry scripts on our site for debugging purposes. I would love to have a module for saving variables/data structures on a per-request basis (like the current Apache notes), but internally using pnotes under mod_perl, and some other mech

Re: Passing data among handlers

2001-01-30 Thread Kip Cranford
On: Tue, 30 Jan 2001 09:54:42 PST "Paul J. Lucas" wrote: > Perhaps I've missed it, but is there a better way than the > "notes" mechanism to pass data among handlers? > > The "notes" mechanism not only requires the notes to be > scalars, but, apparantly, said scalars must

Re: Passing data among handlers

2001-01-30 Thread Barry Hoggard
We created our own "request" object that gets passed to components that might need it. We were concerned about pnotes becoming a big, hard-to-debug global area. = Barry Hoggard http://www.hoggard.org __ Get personalized email addresses from Y

Re: Passing data among handlers

2001-01-30 Thread Robert Landrum
I've never tried this, but you could store things into main using one handler and retrieve them with another, provided that you cleaned up afterward. If, for any reason you failed to cleanup, the server would leak memory... not that it doesn't already. Robert Landrum >Paul J. Lucas ([EMAIL P

Re: Passing data among handlers

2001-01-30 Thread darren chamberlain
Paul J. Lucas ([EMAIL PROTECTED]) said something to this effect on 01/30/2001: > Perhaps I've missed it, but is there a better way than the > "notes" mechanism to pass data among handlers? > > The "notes" mechanism not only requires the notes to be > scalars, but, apparant

RE: Passing data among handlers

2001-01-30 Thread Geoffrey Young
> -Original Message- > From: Paul J. Lucas [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 30, 2001 12:55 PM > To: [EMAIL PROTECTED] > Subject: Passing data among handlers > > > Perhaps I've missed it, but is there a better way than the >

Passing data among handlers

2001-01-30 Thread Paul J. Lucas
Perhaps I've missed it, but is there a better way than the "notes" mechanism to pass data among handlers? The "notes" mechanism not only requires the notes to be scalars, but, apparantly, said scalars must also be simple strings, i.e., no binary data cramme

Re: Passing data

2000-11-21 Thread darren chamberlain
ASHISH MUKHERJEE ([EMAIL PROTECTED]) said something to this effect: > Hey all, I am in need of some help. Can anyone pls. tell me how I can pass data from >a Handler to a script ? Can any session data etc. withing a Handler be made >accessible within a script ? Also, how can I pass data between

Passing data

2000-11-21 Thread ASHISH MUKHERJEE
Hey all, I am in need of some help. Can anyone pls. tell me how I can pass data from a Handler to a script ? Can any session data etc. withing a Handler be made accessible within a script ? Also, how can I pass data between Handlers invoked at different stages of request processing ? eg. how ca

Re: Passing data structures between Stacked Handlers

2000-11-12 Thread Thomas Klausner
Hi! > If you use $r->pnotes, you can just put a reference to an arbitrary data > structure into it and it will still be there in the next handler. No > need to serialize it with Data::Dumper. Better than using a normal > global because it gets automatically cleaned up after the request. Thanks

Re: Passing data structures between Stacked Handlers

2000-11-12 Thread Perrin Harkins
Thomas Klausner wrote: > If there isn't, could it be implemented by dumping the data > structure to $r->notes (with Data::Dumper) and have it eval'ed back > by the next handler? If you use $r->pnotes, you can just put a reference to an arbitrary data structure into it and it will still be there i

Re: Passing data structures between Stacked Handlers

2000-11-12 Thread spam
On Sun, 12 Nov 2000, Dave Kaufman wrote: > > Is there a module that can do "Stacked Handler Pipelining", but > > doesn't pass around tied filehandles but data structures ? Can't you allocate some generic namespace, or better yet, create your own package called config and in that export function

Re: Passing data structures between Stacked Handlers

2000-11-12 Thread Dave Kaufman
"Thomas Klausner" <[EMAIL PROTECTED]> wrote: > Is there a module that can do "Stacked Handler Pipelining", but > doesn't pass around tied filehandles but data structures ? Andreas König's Apache::HeavyCGI is a nice alternative approach to the use of stacked handlers. > If there isn't, could

Passing data structures between Stacked Handlers

2000-11-11 Thread Thomas Klausner
Hi! Is there a module that can do "Stacked Handler Pipelining", but doesn't pass around tied filehandles but data structures ? If there isn't, could it be implemented by dumping the data structure to $r->notes (with Data::Dumper) and have it eval'ed back by the next handler? -- D_OMM