You are here: Re: [PHP] Redirects Safari vs Others « PHP « IT news, forums, messages
Re: [PHP] Redirects Safari vs Others

Posted by Dan Lowe on 12/06/05 22:17

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация