>-----Original Message-----
>From: i.
>To: mod_perl
>Sent: 9/10/01 6:34 PM
>Subject: Internal request
>
>*This message was transferred with a trial version of CommuniGate(tm)
>Pro*
>Is there a way to tell whether or not a request is local or not?
>$ENV{REQUEST_URI} only gives the request after the dns. I need to be
>able to
>tell if a document is requested via www.foo.com/bar.html or ./bar.html
>
>Any help is appreciated.

well, it's not the same thing, but $r->parsed_uri->hostname will only be
populated if the request contained an absolute URI, which typically only
happens if the request originates from a proxy server.

HTH

--Geoff

Reply via email to