Hi,
This solved my problem. Thanks everyone for your help.
Vijay
- Original Message -
From: "Biggs, Jody" <[EMAIL PROTECTED]>
To: "'Vijay'" <[EMAIL PROTECTED]>
Cc: "Modperl Mailing List (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, May 26, 2000 4:59 PM
Subject: RE: Weird problem with redirect
> Unless you specify an absolute URL for the Location header, Apache will do
> an internal redirect (i.e., it won't send a redirect to the browser, it
will
> just recognize that you're trying to redirect them, and just transfer the
> request to the new page).
>
> so do:
>
> print "$mycookie\n";
> print "Location:
>
http://www.yourhost.com/scripts/visitorinfo.cgi?pageid=mailhdr&lang=EN\n
> \n"
>
> by the way - when doing a 302 redirect, it is not necessary to do a
> Content-type header.
>
> - Jody Biggs
>
>
>
> -Original Message-
> From: Vijay [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 26, 2000 3:27 PM
> To: Gerald Richter; Modperl Mailing List
> Subject: Re: Wierd problem with redirect
>
>
> Repost of my earlier message. Sorry for the inconvenience. As this is very
> irksome, I am really sorry for any troubles.
>
> Vijay
> - Original Message -
> From: "Vijay" <[EMAIL PROTECTED]>
> To: "Gerald Richter" <[EMAIL PROTECTED]>; "Modperl Mailing List"
> <[EMAIL PROTECTED]>
> Sent: Friday, May 26, 2000 10:58 AM
> Subject: Re: Wierd problem with redirect
>
>
> Hello,
>
> Thanks for the suggestion. However, I have a problem still left out.
>
> The redirection is loading the redirected page properly. But, it still
> shows
> the URL as the same from where it is redirected.
>
> As below:
>
> My form calls the script
> "/scripts/visitorinfo.cgi?pageid=delmail&lang=EN&adno=1".
>
> In visitorinfo,.cgi, I have following steps
>
> print "Content-type: text/html\n";
> print "$mycookie\n";
> print "Location:
> /scripts/visitorinfo.cgi?pageid=mailhdr&lang=EN\n\n";
> exit;
>
> It really goes to the page mailhdr with appropriate details. But the
> address
> in the browser is still
> "/scripts/visitorinfo.cgi?pageid=delmail&lang=EN&adno=1".
>
> This gives a problem. If the user reloads the page, it will again try to
do
> what I am doing in this, which I don't want to happen.
>
> How do I make the address (URL) to change according to the page it is
> showing.
>
> Thanks for the help
>
> Vijay Nair
> > - Original Message -
> > From: "Gerald Richter" <[EMAIL PROTECTED]>
> > To: "Vijay" <[EMAIL PROTECTED]>; "Modperl Mailing List"
<[EMAIL PROTECTED]>
> > Sent: Friday, May 26, 2000 3:05 AM
> > Subject: RE: Wierd problem with redirect
> >
> >
> > > Hello,
> > > >
> > > >print "Content-type: text/html\n\n";
> > > > print "";
> > > >print " > CONTENT=\"visirotid=$visitorid;
> > > > path=/
> > > > ; domain=www.trichurgateway.com;\">";
> > > > print "\n";
> > > >
> > > > Immediately after this, Iam trying the recirect.
> > > >
> > > > print "Content-type: text/html "."\n\n";
> > > > print "Location:
> > > > /scripts/visitorinfo.cgi?pageid=mailhdr&lang=EN\n\n";
> > > > exit 0;
> > > >
> > >
> > > You cannot send a second http header.
> > >
> > > Do a
> > >
> > > print "Content-type: text/html\n";
> > > print "Set-Cookie: visirotid=$visitorid;... \n" ;
> > > print "Location:
> > > /scripts/visitorinfo.cgi?pageid=mailhdr&lang=EN\n\n";
> > >
> > > Gerald
> > >
> > >
> > > -
> > > Gerald Richterecos electronic communication services gmbh
> > > Internetconnect * Webserver/-design/-datenbanken * Consulting
> > >
> > > Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
> > > E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925151
> > > WWW:http://www.ecos.de Fax: +49 6133 925152
> > > -
> > >
> > >
> >