Does anybody know how to redirect from a perl page with a
print Content-type: text/html\r\n\r\n; code line?
are you trying to redirect a client to another web site or page?
you can try a google search for redirect web page and get tons of info
you can use a cgi script like below:
use
[EMAIL PROTECTED]
To: 'Miguel Angel Morales' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 2:48 PM
Subject: RE: perl redirection
Does anybody know how to redirect from a perl page with a
print Content-type: text/html\r\n\r\n; code line?
are you trying to redirect
Yes James, I'm trying to redirect to a php page, but as I use print
Content-type: text/html\r\n\r\n; whe I user your cgi
use CGI;
my $q = new CGI;
.
print $q-redirect( ../index.php );
it only writes Status: 302 Moved Location: ../index.php
can you explain what you are trying
Better if you send some relevant lines of your code :)
José.
-Original Message-
From: Miguel Angel Morales [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:40 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: perl redirection
It is an IPv6 tunnelbroker, and when
Yes James, I'm trying to redirect to a php page, but as I
use print
Content-type: text/html\r\n\r\n; whe I user your cgi
use CGI;
my $q = new CGI;
.
print $q-redirect( ../index.php );
it only writes Status: 302 Moved Location: ../index.php
forgot to mention.
Miguel Angel Morales [EMAIL PROTECTED] wrote:
:
: Yes James, I'm trying to redirect to a php page, but
: as I use print Content-type: text/html\r\n\r\n;
: when I user your cgi
:
: use CGI;
: my $q = new CGI;
: .
: print $q-redirect( ../index.php );
:
: it only writes Status: 302 Moved
Does anybody know how to redirect from a perl page with a
print Location: http://www.yahoo.com\n\n;;
That's the header anywho. You wouldn't really need the Content-type
line then as there will be not content for that document.
HTH
DMuey
print Content-type: text/html\r\n\r\n; code line?