PHP 4.0 Bug #8008: HTTP/1.1 307 Temporary Redirect ignored

From: Date: Tue, 28 Nov 2000 10:38:18 +0000
Subject: PHP 4.0 Bug #8008: HTTP/1.1 307 Temporary Redirect ignored
Groups: php.dev 
Request: Send a blank email to php-dev+get-39368@lists.php.net to get a copy of this message
From: leen@wirehub.nl Operating system: Linux 2.2 PHP version: 4.0.3pl1 PHP Bug Type: HTTP related Bug description: HTTP/1.1 307 Temporary Redirect ignored in main/SAPI.c: line code 441 SG(sapi_headers).send_default_content_type = 0; 442 } else if (!STRCASECMP(header_line, "Location")) { 443 SG(sapi_headers).http_response_code = 302; /* redirect */ 444 } else if (!STRCASECMP(header_line, "WWW-Authenticate")) { /* HTTP Authentication */ 445 SG(sapi_headers).http_response_code = 401; /* authentication-required */ 446 } 447 *colon_offset = ':'; 448 } My knowledge of C is not so great but I can see that this is being ignored somewhere allong those lines of code (this is part of my script): header ("HTTP/1.1 307 Temporary Redirect"); header (""Location: "http://<redirlocation>"); Please do something about it, this is very anoying, because this is what I get: HTTP/1.1 302 Found Date: Tue, 28 Nov 2000 12:50:46 GMT Server: Apache/1.3.9 (Unix) Debian/GNU PHP/4.0.3pl1 X-Powered-By: PHP/4.0.3pl1 Location: http://<redirlocation> Connection: close Transfer-Encoding: chunked Content-Type: text/html (ofcourse http://<redirlocation> is then ofcourse a real location) -- Edit Bug report at: http://bugs.php.net/?id=8008&edit=1

« previous php.dev (#39368) next »