Thanks all who replied. From your post i gather that i need
to handle my redirect client side....so.....
#!/usr/bin/perl
use CGI qw(:standard);
print header;
$| = 1;
print "hi\n";
sleep 3; # i would actually do a lot of other stuff here
print<<EOF
<script language="javascript">
<!--
location.replace("http://www.yahoo.com");
-->
</script>
EOF
thanks,
jd
On Wed, 2004-01-14 at 09:09, Dan Muey wrote:
> > >redirect() does a header like header(), the first header
> > that gets sent
> > >is the header, the rest is content, even if The contetn
> > looks just like
> > >a header.
> >
> > Thanks for the correction, I have not found the time to read
> > "CGI Programming with Perl" thoroughly and did not realize
> > redirect *does* a header.
> >
>
> No problem.
>
> > >I also remember hearing it's a better idea to use absolute url's in
> > >your Location header.
> >
> > Regarding this, I am proud of keeping all of my relative
> > links intact. It's sort of a challenge. At least I use
> > absolute relative links instead of entirely relative ones. ;-)
> >
>
> Whatever you want, but it's more likely to cause a browser to choke,
> which would kind of defeat the purpose that's all. And that's not just
> true with Perl it's the http protocol and a browser's use of it.
>
> > Best,
> >
> > Jan
> > --
> > There are 10 kinds of people: those who understand binary,
> > and those who don't
> >
--
jdavis <[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>