>
> Should there by any difference between using?:
>
> [-
>    pcsuri($_[0]), $rdrloc=$GWCe::pcsuri;
>    use Apache;
>    use Apache::Constants qw(REDIRECT);
>    $req_rec->header_out("Location" => $rdrloc);
>    $req_rec->status(REDIRECT);
>    exit;
> -]
>
> and:
>
> [-
>    pcsuri($_[0]), $rdrloc=$GWCe::pcsuri;
>    $http_headers_out{'Location'} = $rdrloc;
>    exit;
> -]
>
>
> I was having an intermittant problem with my redirects until I started
> using the new http_headers_out directive.
> The redirect was not being sent to the browser.  It could be I had
> another error somewhere, but just wanted to report it to the list in
> case someone else notices an issue using Apache redirect inside of
> Embperl.
>

Both version should do the same thing! (Version one will return status 302,
while version two uses 301, but the result is the same) I am using the first
version in a lot of places, whithout problems...

I just copied your two pieces of code in two files, to make sure nothing is
broken, and both work without problems :-)

Gerald

Reply via email to