php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11573 Malformed HTTP response Header
Submitted: 2001-06-20 05:04 UTC Modified: 2001-08-06 09:25 UTC
From: jerome dot delamarche at free dot fr Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.5 OS: Linux
Private report: No CVE-ID: None
 [2001-06-20 05:04 UTC] jerome dot delamarche at free dot fr
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-20 12:04 UTC] sniper@php.net
Which broswser and what version of it? 
Please include a short but complete not working script into
this report.

--Jani

 [2001-08-06 09:25 UTC] andy@php.net
no feedback
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 02:01:30 2024 UTC