You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Rod Butcher <rb...@hyena.com.au> on 2000/08/05 19:59:33 UTC
Apache::ASP Response Redirect question
Can anybody please tell me whether the following internal redirect
causes the new URL to be sent back to the browser which then asks for
foo.htm to be served up, or does Apache simply serve up foo.htm
automatically ? The comments in ASP.PM are very cryptic.
$Response->Redirect("foo.htm")
Or is there a better (more efficient) way to do this ?
Thanks
Rod
Thanks-answer to Apache::ASP Response Redirect question
Posted by Rod Butcher <rb...@hyena.com.au>.
Thanks Ged and Joshua, I have now read the documentation, mea culpa, and
upgraded to ASP.pm 2.03. Following works now for a fast internal
redirect :-
$Response->Clear();
$file = $Server->MapPath("foo.htm");
$Server->Transfer("$file");
Joshua Chamas wrote:
>
> "G.W. Haywood" wrote:
> >
> > Hi there,
> >
> > On Sun, 6 Aug 2000, Rod Butcher wrote:
> >
> > > Can anybody please tell me whether the following internal redirect
> > > causes the new URL to be sent back to the browser which then asks for
> > > foo.htm to be served up, or does Apache simply serve up foo.htm
> > > automatically ?
> >
> > I'll field this one because Josh is busy going to Sweden this weekend.
> >
> > > The comments in ASP.PM are very cryptic.
> >
>
> Almost gone Ged ... not soon enough though ;)
>
> $Response->Redirect() is an external redirect,
> $Server->Transfer() is an internal redirect
> and is what you are looking for Rod. Please
> read the docs fully to know how you can use ASP
> maximally. The distribution README like Ged said,
> or the site http://www.apache-asp.org.
>
> -- Joshua
Re: Apache::ASP Response Redirect question
Posted by Joshua Chamas <jo...@chamas.com>.
"G.W. Haywood" wrote:
>
> Hi there,
>
> On Sun, 6 Aug 2000, Rod Butcher wrote:
>
> > Can anybody please tell me whether the following internal redirect
> > causes the new URL to be sent back to the browser which then asks for
> > foo.htm to be served up, or does Apache simply serve up foo.htm
> > automatically ?
>
> I'll field this one because Josh is busy going to Sweden this weekend.
>
> > The comments in ASP.PM are very cryptic.
>
Almost gone Ged ... not soon enough though ;)
$Response->Redirect() is an external redirect,
$Server->Transfer() is an internal redirect
and is what you are looking for Rod. Please
read the docs fully to know how you can use ASP
maximally. The distribution README like Ged said,
or the site http://www.apache-asp.org.
-- Joshua
Re: Apache::ASP Response Redirect question
Posted by "G.W. Haywood" <ge...@www.jubileegroup.co.uk>.
Hi there,
On Sun, 6 Aug 2000, Rod Butcher wrote:
> Can anybody please tell me whether the following internal redirect
> causes the new URL to be sent back to the browser which then asks for
> foo.htm to be served up, or does Apache simply serve up foo.htm
> automatically ?
I'll field this one because Josh is busy going to Sweden this weekend.
> The comments in ASP.PM are very cryptic.
:)
But the documentation isn't! Have a look in the README.
73,
Ged.