in reply to Re^4: CGI error: "Invalid header value contains a newline not followed by whitespace"
in thread CGI error: "Invalid header value contains a newline not followed by whitespace"
You say this because you've tried it? Or you say this because you trust the documentation?
The documentation doesn't say that Apache ignores the cookie - it claims that browsers ignore cookies when they are redirected. It's wrong. They don't. (Though in some early versions of Safari there was a bug where it did. This was fixed though.)
And if they did ignore cookies when redirecting, then why do you think that structuring your code slightly differently will change things? However your code works internally, if you're printing the same HTTP headers, restructuring the code won't change anything. Browsers don't see your code - they see the HTTP headers.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: CGI error: "Invalid header value contains a newline not followed by whitespace"
by MyMonkName (Acolyte) on Feb 04, 2012 at 22:21 UTC | |
by tobyink (Canon) on Feb 04, 2012 at 23:04 UTC |