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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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