From:             [EMAIL PROTECTED]
Operating system: unix
PHP version:      4.1.2
PHP Bug Type:     Output Control
Bug description:  wrong header sent

source code at http://localhost/talalka.php :


<?php
  header("Content-type: text/plain");
  echo "LOFASZ\n";
?>


command running:


/usr/bin/lynx -source -mime_header http://localhost/talalka.php


result:


HTTP/1.1 200 OK
Date: Wed, 22 May 2002 13:24:29 GMT
Server: Apache/1.3.22 (Unix) PHP/4.1.2
X-Powered-By: PHP/4.1.2
Connection: close
Content-Type: text/plain

LOFASZ


As you can see, php sends wrong header. The "Content-type" header is not
sent as i wrote it into the header function, and this causes chaos,
because as the cgi specification, this header is case sensitive and has to
be written as "Content-type".
-- 
Edit bug report at http://bugs.php.net/?id=17359&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17359&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17359&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17359&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17359&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17359&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17359&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17359&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17359&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17359&r=globals

Reply via email to