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

Obtaining URI supplied by the client from a subrequest


Hello,

I'm redirecting to a mod_perl handler with ErrorDocument:

  Order allow,deny
  ErrorDocument 403 /login
  <Location "/login">
    Order deny,allow
    SetHandler modperl
    PerlResponseHandler My::Handler
  </Location>

On an unauthorized request, Apache makes a subrequest served by
My::Handler::handler().  So far, so good.

I need the original URI in the handler.  $r->uri contains "/login",
so does $r->unparsed_uri -- useless.  

Is there any smarter way than this hack?

  my $request_uri = (split /\s/, $r->the_request)[1];

-- 
Radosław Zieliński <suppressed>

Attachment: pgppL3EdWApKT.pgp
Description: PGP signature


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