Re: [PHP4BETA] You should not have to choose

From: Date: Fri, 19 Nov 1999 12:04:50 +0000
Subject: Re: [PHP4BETA] You should not have to choose
References: 1  Groups: php.dev php.version4 
Request: Send a blank email to php-dev+get-12760@lists.php.net to get a copy of this message
Joel Jacobson wrote: > 1) Send headers like HTTP 401, because Apache will add Content-type: > text/html before your HTTP-header. Please read the CGI specification. Of course this is possible. kk@wwwx /home/www/servers/kris.dev.netuse.de/pages $ telnet wwwx 80 Trying 195.244.241.9... Connected to wwwx. Escape character is '^]'. GET /status.php3 HTTP/1.0 Host: kris.dev.netuse.de HTTP/1.1 666 Evil header Date: Fri, 19 Nov 1999 11:57:11 GMT Server: Apache/1.3.9 (Unix) mod_ssl/2.4.6 OpenSSL/0.9.4 Connection: close Content-Type: hell/hot heat is on Connection closed by foreign host. kk@wwwx /home/www/servers/kris.dev.netuse.de/pages $ cat status.php3 <? header("Status: 666 Evil header"); header("content-type: hell/hot"); print "heat is on\n"; ?> kk@wwwx /home/www/servers/kris.dev.netuse.de/pages $ Kristian -- Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00 Using PHP3? See our web development library at http://phplib.netuse.de/ (We have moved! Update your bookmarks!)

« previous php.dev (#12760) next »