Can you provide the code? You should print the header for your page. The header always have 2 blank lines after, so you should use either:
print "Location: $url\n\n"; or print "Content-type: text/html\n\n"; or print <<eof; Set-Cookie: name=value; path=/cgi-bin/; expires=Sun, 12-Jan-2003 17:02:20 GMT Connection: close Content-Type: text/html eof (the last header will also set a cookie). Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] ----- Original Message ----- From: "Rob Richardson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 12, 2003 4:19 PM Subject: Re: Sending a location Header Greetings! I have successfully added the new functionality to the script I have been upgrading. Now the old functionality doesn't work. When I try to use it, I get an error page announcing Error 500, Internal Server Error. The log file contains the following message: "Premature end of script headers" What does this mean? I don't know enough to know where to begin to search for the cause of this problem. Also, when is this error generated? Can I print to a log file before this error occurs, or is this error generated before any code in my script is run? Thanks very much! RobR __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]