in reply to Re: 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"

Thanks very much for the very concise code. I used the last bit of code and it eliminated the error. However I actually wanted the logout to redirect to the calling url for the whole cgi. I am actually returned to the page with the logout tab(where I logged out). Any idea about that?
  • Comment on Re^2: CGI error: "Invalid header value contains a newline not followed by whitespace"

Replies are listed 'Best First'.
Re^3: CGI error: "Invalid header value contains a newline not followed by whitespace"
by ikegami (Patriarch) on Oct 14, 2014 at 14:24 UTC

    Because you're passing the url of the page the user requested when you mean to redirect to the login page.

    Maybe $cgi->url(-base => 1) . '/login.html'?

      That worked perfectly, thanks very much.