> From: [EMAIL PROTECTED] (Randal L. Schwartz)
> Organization: Stonehenge Consulting Services; Portland, Oregon, USA
> Date: 10 Oct 2001 09:06:34 -0700
> To: [EMAIL PROTECTED]
> Subject: Re: Browser Redirection
> 
>>>>>> "Carl" == Carl Franks <[EMAIL PROTECTED]> writes:
> 
> Carl> Hi
> Carl> I'm having trouble using perl to redirect a browser to another page.
> Carl> If the script has the line
> 
> Carl> print "Content-type:text/html\n\n";
> 
> needs a space to be compliant.  "Content-type: text/html"

Not exactly. Carl is already printing the content-type, complete with two
newlines, which ends the headers. Correct me if I'm wrong, but wouldn't he
just need to do something like this:

print "Content-type: text/html\n";
print "Location: http://www.mysite.com/page.html\n\n";;

(only one newline in between headers, two newlines to end headers)

Though it may be more correct, from my experience, you don't need the space.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to