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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stocksheet at yahoo dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 02:00:02 2026 UTC