[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Sub Requests
From:       Joe Schaefer <joe+gmane () sunstarsys ! com>
Date:       2007-03-30 21:34:56
Message-ID: 878xde76v3.fsf () gemini ! sunstarsys ! com
[Download RAW message or body]

Anthony Gardner <cyclewood_ltd@yahoo.co.uk> 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 query string from the initial request.  Is it taking
> that from the REQUEST_URI? I thought it would take it from the
> QUERY_STRING ......... hence me concentrating 
> on that area.

Make sure your calls to CGI all pass the optional $r argument.
Otherwise use APR::Request, which handles subrequests correctly.

Btw, capturing the output of a subrequest can be done with a closure.
I'm sure I posted some code to do that here at one time or another.


-- 
Joe Schaefer

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic