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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 - 18 = ?
Subscribe to this entry?

 
 [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: Tue May 14 15:01:30 2024 UTC