php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #545 Misbehaving Header("Location ...");
Submitted: 1998-07-13 03:12 UTC Modified: 1999-06-12 16:15 UTC
From: stocksheet at yahoo dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Final Release OS: FreeBSD2.2
Private report: No CVE-ID: None
 [1998-07-13 03:12 UTC] stocksheet at yahoo dot com
type a php3 file called a1.php3 containing one line
<? Header("Location: /newQS/a/a.php3");?>

telnet to the web server and GET the file:
GET /a1.php3

your telnet response is : Connection closed by
foreign host.

On the other hand,  create a perl .cgi file with the
following line:
#!/usr/local/bin/perl
print "Location: /newQS/a/a.php3\n\n";

now telnet to the webserver and GET it.
you will get the redirected file. 

what causes the different behavior?

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 01:01:30 2024 UTC