Re: sub-requests, lookup_uri and that kind of stuff

2008-12-21 Thread Torsten Foertsch
On Mon 22 Dec 2008, André Warnier wrote: > I could do this the hard way by using LWP to just issue a new HTTP > request to localhost and get the content, before I go on with my > current request. > > But I figure there must be an easier and more efficient way, no ? > > Looking at the explanations f

Re: Sub Requests

2007-03-30 Thread Joe Schaefer
Anthony Gardner <[EMAIL PROTECTED]> writes: > Okay, including the new query string in the lookup_uri now correctly > populates the QUERY_STRING in the sub request but > that isn;t the answer to my problems. > > Within the called script, we make a call to $cgi->Vars but this is > returning the que

Re: Sub Requests

2007-03-30 Thread Anthony Gardner
Cool. you're a diamond. stay tuned for the next problem!! Perrin Harkins <[EMAIL PROTECTED]> wrote: On 3/30/07, Anthony Gardner wrote: > One more question, I had to put the data in notes so that it was available > in the inital script. Is that the right way to do it? That's a good way to do it.

Re: Sub Requests

2007-03-30 Thread Perrin Harkins
On 3/30/07, Anthony Gardner <[EMAIL PROTECTED]> wrote: One more question, I had to put the data in notes so that it was available in the inital script. Is that the right way to do it? That's a good way to do it. I think the alternative is to rig some kind of filter to capture the output of the

Re: Sub Requests

2007-03-30 Thread Anthony Gardner
Ookay. Had a play with initalising the globals and got the thing working. One more question, I had to put the data in notes so that it was available in the inital script. Is that the right way to do it? Perrin, thanks for all your help on this. I've learnt a lot more, too which is als

Re: Sub Requests

2007-03-30 Thread Perrin Harkins
On 3/30/07, Anthony Gardner <[EMAIL PROTECTED]> wrote: Within the called script, we make a call to $cgi->Vars but this is returning the query string from the initial request. That's just a problem with the way CGI.pm is coded. It essentially doesn't work for subrequests or internal redirects b

Re: Sub Requests

2007-03-30 Thread Anthony Gardner
Okay, including the new query string in the lookup_uri now correctly populates the QUERY_STRING in the sub request but that isn;t the answer to my problems. Within the called script, we make a call to $cgi->Vars but this is returning the query string from the initial request. Is it taking that f

Re: Sub Requests

2007-03-29 Thread Anthony Gardner
Yeah, you know what, I was mistakingly using lookup_file for ages and then changed to lookup_uri but then overlooked the possibilty of adding on the qsuery string. Ho hum, will try tomorrow. Am getting there slowly. Perrin Harkins <[EMAIL PROTECTED]> wrote: On 3/29/07, Anthony Gardner wrote: >

Re: Sub Requests

2007-03-29 Thread Perrin Harkins
On 3/29/07, Anthony Gardner <[EMAIL PROTECTED]> wrote: I can use PassEnv and PerlPassEnv, set them in the calling script and then retrieve the values in the called script (sub request) cool!! You could also put things in $r->pnotes(). The parent request object is available from within