Hello,

I hope someone can explain me "where I am not correct?"....

I know that things are not easy with mod_perl. But sometimes things are going to drive 
me crazy.

In my project AxKit does up to 3 levels of subrequests per one request.

I can't send params by querystring for subrequests - Apache::Request->instance returns 
one instance for subrequest and for main request.

I think that it is not normal for 'instance', is it? How to solve this? How to make 
subrequest (by document("") xsl function for example) and read params in provider that 
operates with this subrequest?

Apache::Request POD says: "Subrequests receive a new Apache::Request object when they 
call instance() - the parent request's Apache::Request object is not copied into the 
subrequest."

But there is OLD object!

Here is a fragment of my angry debug in Apache::AxKit::Language::get_params func:

--------------------------------------- <cut>
if (!$r->notes('disable_xslt_params')) {
  my $x = Apache::Request->instance($r->main()) if $r->main();

  warn "*********** $r .$x. " . scalar($r->main()) ."\n"  . ((scalar($r->args()) || 
"") . "\n");

  my $cgi = Apache::Request->instance($r);

  warn "*********** $r $cgi -" . scalar($cgi->main()) ." - ".scalar($r->main()) ."\n"  
. ((scalar($cgi->args()) || "") . "\n");

  @xslt_params = map { $_ => AxKit::ToUTF8(($cgi->param($_))[0]) } $cgi->param;
-  ...  ------------------------------- </cut>


Here is output from error_log:

--------------------------------------- <cut>
*********** AxKit::Apache=SCALAR(0x893f64c) .Apache::Request=SCALAR(0x869766c). 
Apache=SCALAR(0x8964f78)
sr=IsQ;id=-nhjbSUihVv
*********** AxKit::Apache=SCALAR(0x893f64c) Apache::Request=SCALAR(0x869766c) - - 
Apache=SCALAR(0x8964f60)
id=-nhjbSUihVv
--------------------------------------- </cut>

Apache::Requests returned the same for main and for subrequests!

(params that I sent to subrequest - 'sr' and 'id'. the main page requested with 'id' 
param only)


help please....

Sincerely,
Alex.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to