[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sub Requests


Anthony Gardner <suppressed> 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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.