You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by "Mario F. Toro" <mt...@devetel.cl> on 2000/11/20 16:19:56 UTC

handlers , redir and apache::exit ?

Hi,

I have 3 handlers  like this :

PerlHandler   Apache::OutputChain phonecom_ep Apache::EmbperlChain 
Apache::PassFile

And

$http_headers_out{location}="milocation";
Apache::exit;

But the system don't make redir ...

Is because handlers that s system don't make redir ?

Or I have to detect the redirection in next handler ?

Bye



----------

Mario F. Toro
Gerente Desarrollo
E-Mail : Mario.Toro@DeveTel.cl
Telefono : +(56)-2-2368138
Fax : +(56)-2-2368139
Http://www.DeveTel.cl
DeveTel

----------


----------

 <http://www.chilewap.cl/>Chile Wap - Wireless TechnologiesChile Wap - 
Wireless Technologies

----------

Re: handlers , redir and apache::exit ?

Posted by Gerald Richter <ri...@ecos.de>.
Hi,
>
> I have 3 handlers  like this :
>
> PerlHandler   Apache::OutputChain phonecom_ep Apache::EmbperlChain
> Apache::PassFile
>
> And
>
> $http_headers_out{location}="milocation";
> Apache::exit;
>

I don't use OutputChain, but I guess it will let Embperl in a way, so that
it doesn't generates headers. Mayb it help to set the header directly:

    [-
    use Apache;
    use Apache::Constants qw(REDIRECT);


    $req_rec->header_out("Location" => "http://$ENV{HTTP_HOST}/specials/");
    $req_rec->status(REDIRECT);
    -]


Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------