You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Gunnar Wolf <gw...@gwolf.org> on 2006/08/09 22:42:16 UTC

Non-mod_perl way of finding out how was I called

Hi,

I'm writing an app using the EMBPERL_OBJECT_APP style, where I have
set EMBPERL_OBJECT_FALLBACK (so all the requests with no specific
handler are received by a common handler. My question is: Is there a
portable way of knowing which URL was specified? I know that under
mod_perl I can get this via $req_rec->uri, but I'm writing an
application that should be also installable under FCGI environments.

Thank you,

-- 
Gunnar Wolf - gwolf@gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


RE: Non-mod_perl way of finding out how was I called

Posted by Gerald Richter <ri...@ecos.de>.
Hi,
> 
> I'm writing an app using the EMBPERL_OBJECT_APP style, where 
> I have set EMBPERL_OBJECT_FALLBACK (so all the requests with 
> no specific handler are received by a common handler. My 
> question is: Is there a portable way of knowing which URL was 
> specified? I know that under mod_perl I can get this via 
> $req_rec->uri, but I'm writing an application that should be 
> also installable under FCGI environments.
> 

For example

$epreq -> param -> uri

You also look at the other methods of the request object. See
http://perl.apache.org/embperl/pod/doc/Config.-page-3-.htm

Gerald




 
** Virus checked by BB-5000 Mailfilter ** 


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org