Bug #11573: Malformed HTTP response Header
| From: | jerome dot delamarche at free dot fr | Date: | Wed, 20 Jun 2001 09:04:49 +0000 |
| Subject: | Bug #11573: Malformed HTTP response Header | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57351@lists.php.net to get a copy of this message | ||
From: jerome.delamarche@free.fr
Operating system: Linux
PHP version: 4.0.5
PHP Bug Type: *Session related
Bug description: Malformed HTTP response Header
I'm using the session*() functions and test them with a browser which refuses cookies. So I add
"PHPSESSID=....." as a parameter of the requested url.
For example, I call "qcmcreate.php?parm1=xxx&parm2=yyy&PHPSESSID=zzzzzzzzz". I
noticed that the HTTP header returned by my script contain an extra line that confuses my client.
The end of the HTTP header looks like:
Content-Type: test/html
\r\n
\r\n
xxx
\r\n
\r\n
(\r\n means a "blank and empty line")
What's wrong here are the "xxx\r\n\r\n" lines. Where "xxx" is up to 3
characters. These 3 lines make my client misinterpret the server response.
If I make my browser accept cookies, the problem disappears.
To make sure I did not echo anything, the 1st instruction of my "qcmcreate.php" script is
"die;"
What's wrong ?
Thank you,
Jerome
Pl
--
Edit Bug report at: http://bugs.php.net/?id=11573&edit=1