Re: redirect with cgi.pm

2004-01-14 Thread jdavis
On Wed, 2004-01-14 at 10:19, James Edward Gray II wrote: > On Jan 14, 2004, at 11:07 AM, jdavis wrote: > > > Thanks all who replied. From your post i gather that i need > > to handle my redirect client sideso. > > > > #!/usr/bin/perl > > use CGI qw(:standard); > > print header; > > > > $|

Re: redirect with cgi.pm

2004-01-14 Thread James Edward Gray II
On Jan 14, 2004, at 11:07 AM, jdavis wrote: Thanks all who replied. From your post i gather that i need to handle my redirect client sideso. #!/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 If

RE: redirect with cgi.pm

2004-01-14 Thread jdavis
Thanks all who replied. From your post i gather that i need to handle my redirect client sideso. #!/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 thanks, jd On Wed, 2004-01-14 at 0

RE: redirect with cgi.pm

2004-01-14 Thread Dan Muey
> >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

RE: redirect with cgi.pm

2004-01-14 Thread Jan Eden
>>print $q->header # do this - do that, using $q >> >>print $q->redirect("/thanks.html"); > >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 t

RE: redirect with cgi.pm

2004-01-14 Thread Dan Muey
> > Hi, > > like this: > > #!/usr/bin/perl -w > > use strict; > use CGI; > use CGI::Carp qw(fatalsToBrowser); > > my $q = new CGI; > > print $q->header > # do this - do that, using $q > > print $q->redirect("/thanks.html"); > > - Jan redirect() does a header like header(), the first heade

Re: redirect with cgi.pm

2004-01-14 Thread Wiggins d Anconia
> On Jan 14, 2004, at 3:25 AM, Jan Eden wrote: > > > Hi, > > > > like this: > > > > #!/usr/bin/perl -w > > > > use strict; > > use CGI; > > use CGI::Carp qw(fatalsToBrowser); > > > > my $q = new CGI; > > > > print $q->header > > # do this - do that, using $q > > > > print $q->redirect("/thanks.htm

Re: redirect with cgi.pm

2004-01-14 Thread James Edward Gray II
On Jan 14, 2004, at 3:25 AM, Jan Eden wrote: Hi, like this: #!/usr/bin/perl -w use strict; use CGI; use CGI::Carp qw(fatalsToBrowser); my $q = new CGI; print $q->header # do this - do that, using $q print $q->redirect("/thanks.html"); Unfortunately, this doesn't work. As Randal already said,

Re: redirect with cgi.pm

2004-01-14 Thread Jan Eden
Hi, like this: #!/usr/bin/perl -w use strict; use CGI; use CGI::Carp qw(fatalsToBrowser); my $q = new CGI; print $q->header # do this - do that, using $q print $q->redirect("/thanks.html"); - Jan jdavis wrote: >Hello, > I have been able to use redirects with cgi.pm as long >as the redirec

Re: redirect with cgi.pm

2004-01-13 Thread Randal L. Schwartz
> "Jdavis" == Jdavis <[EMAIL PROTECTED]> writes: Jdavis> I have been able to use redirects with cgi.pm as long Jdavis> as the redirect is the only thing in the script. First, this should be in the perl-cgi-beginners list instead of this list. Jdavis> i.e. Jdavis> #!/usr/bin/perl Jdavis> u