Re: Redirects Safari vs Others

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Dec 6, 2005, at 2:55 PM, Mark Steudel wrote:

Sorry it took me so long, I wasn't sure where the problem lay and couldn't get you the exact code, but I figured out why (sorta) this was happening.

// Causes only Safiri to bomb
header("location:
".$_SERVER['PHP_SELF']."?action=listentries&categoryid=". $id."&page=".$pagei
d);
exit;

FWIW, I tried to duplicate this and wasn't able to. Here's a short test script:

<?php
if ($_GET['action'])
    echo "ok";
else
    header("Location:".$_SERVER['PHP_SELF']."?action=list&cat=id");
?>

When I hit that page, it behaves as expected, redirects to the same page with ?action.. and then it responds by printing 'ok'.

This is using PHP 4.3.10 and Safari v2.0.2 (416.13).


dan@Menegroth:~{0}% telnet dev.tangledhelix.com 80
Trying 205.196.219.129...
Connected to dev.tangledhelix.com.
Escape character is '^]'.
GET /php_self/ HTTP/1.1
Host: dev.tangledhelix.com

HTTP/1.1 302
Date: Tue, 06 Dec 2005 20:15:53 GMT
Server: Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/ 1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e
X-Powered-By: PHP/4.3.10
Location: /php_self/index.php?action=list&cat=id
Transfer-Encoding: chunked
Content-Type: text/html

0

GET /php_self/index.php?action=list&cat=id HTTP/1.1
Host: dev.tangledhelix.com

HTTP/1.1 200 OK
Date: Tue, 06 Dec 2005 20:16:10 GMT
Server: Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/ 1.3.26.1a PHP/4.3.10 mod_ssl/2.8.22 OpenSSL/0.9.7e
X-Powered-By: PHP/4.3.10
Transfer-Encoding: chunked
Content-Type: text/html
X-Pad: avoid browser bug

2
ok
0


--
To announce that there must be no criticism of the President, or that
we are to stand by the President, right or wrong, is not only
unpatriotic and servile, but is morally treasonable to the American
public.                           -Theodore Roosevelt, 1918

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux