in reply to Cookie question ....

You may have found a workaround, but I'm still curious to why it doesn't work... For some reason, CGI.pm isn't outputting proper linebreaks (preferably CR+LF) as it should... If it's a bug, I'd like the maintainer of that module to be warned.

Judging from the module's code, that is defined by the global variable $CGI::CRLF. Can you check what it contains — on the server, of course?

use CGI; print "Content-type: text/plain\n\n"; print join " ", unpack 'C*', $CGI::CRLF;
Except on EBCDIC systems, it ought to look like
13 10

Replies are listed 'Best First'.
Re: Re: Cookie question ....
by caedes (Pilgrim) on Feb 27, 2003 at 18:20 UTC
    I seriously doubt if the linebreaks are the problem. Most likely the browser is interpreting the late header information as html and just ignoring the line breaks. If he viewed the source of the page the line breaks would be there.

    -caedes