Tracy12 wrote:
> Does this mean there is no direct way to retrieve the scheme from the $r  
> 
> I have seen old code bases where they do the following
> 
> my $uri->Apache::URI->parse($r);
> my $schme= $uri->scheme;
> 
> But this is not working in mod_perl2.x

see

  http://perl.apache.org/docs/2.0/api/Apache2/URI.html

and

  http://perl.apache.org/docs/2.0/api/APR/URI.html

the equivalent mp2 code is something like this:

  my $uri = APR::URI->parse($r->pool, Apache2::URI->construct_url);
  my $scheme = $uri->scheme();

but I didn't test it so you might have to tweak it a bit.

HTH

--Geoff

Reply via email to