Does anyone here have write access to a PHP web server?

Mar 11, 2011 20:57

I am investigating an unfortunate interaction between a Facebook feature (the "always use https" preference) and the behavior of certain browsers (definitely Mac Safari, perhaps others) when they receive an HTTP "302" redirect ( Read more... )

Leave a comment

Comments 25

nosrednayduj March 12 2011, 02:47:04 UTC
We're running some sort of web server on olum.org. "ps" reveals some apache processes with happy looking arguments like "-DHAVE_PHP5". But I don't have any idea how to test if it works. You could email me a tar or zip file with some contents and I could put it up as http://www.olum.org/yduj/ron and you could do whatever you wanted. Well, within reason ;-)

Reply

ron_newman March 12 2011, 03:08:02 UTC
Thanks. I just sent a tar file to the e-mail address listed in your LJ profile.

Reply


nosrednayduj March 12 2011, 03:27:55 UTC
For others interested in helping, it's now up at http://www.olum.org/yduj/redir_frag. Have fun, and report your browser version and the results you got from the four tests. I did IE 8 and FF 3.6 on a PC and a really old FF 3.0 on linux. And lynx, just for grins.

Reply

ron_newman March 12 2011, 03:36:26 UTC
Thanks! The results I get on my Mac:

No old or new fragment: "" in all my browsers

Old fragment only: "" in Safari 5.04; "#old" in Firefox 3.6.15, Camino 2.0.6, Chrome 10.0.648.133, and Opera 11.01. I consider Safari's behavior to be broken.

New fragment only: "#new" in all my browsers

Both old and new fragments: "#old" in Opera, "#new" in Safari, Firefox, Camino, and Chrome. I wonder why Opera is choosing different behavior from the others.

(What results did you get from your tests, Judy?)

Reply

nosrednayduj March 12 2011, 14:02:04 UTC
IE: "" "" "#new" "#new"
FF (both): "" "#old" "#new" "#new"

Reply

ron_newman March 12 2011, 19:10:04 UTC
Thanks. So IE also behaves (in my opinion) wrongly, and Safari may have just copied that behavior.

I don't know whether it is possible to run more than one version of IE on a PC. If you have other versions of IE around (9, 7, 6), can you try them as well?

Reply


ron_newman March 12 2011, 03:40:54 UTC
An explanation of what this is testing:

Clicking on any of the four links invokes a PHP script that uses a 302 redirect to another page. The difference between the four involves the processing of the fragment identifier -- the string after "#" in a URL.

"No old or new fragment" uses a link without an 'old' fragment identifier, and tells the PHP script not to add its own 'new' fragment identifier to the URL it redirects to.

"Old fragment only" uses a link with an 'old' fragment identifier, and tells the PHP script not to add its own 'new' fragment identifier.

"New fragment only" uses a link without an 'old' fragment identifier, but tells the PHP script to add its own 'new' fragment identifier when redirecting.

"Both old and new fragments" uses a link with an 'old' fragment identifier, but also tells the PHP script to add its own 'new' fragment identifier when redirecting ( ... )

Reply

nu_luba March 12 2011, 11:44:09 UTC
i get ""
#old
#new
#new

in firefox

""
""
#new
#new

in safari

""
#old
#new
#new

in flock

Reply

ron_newman March 12 2011, 11:52:00 UTC
Thanks What version of these browsers, and on what operating system?

Reply

nu_luba March 12 2011, 11:59:02 UTC
mac os 10.6.6

firefox 3.6.15

safari 5.0.3

flock 1.2.7

Reply


(The comment has been removed)

ron_newman March 12 2011, 11:53:55 UTC
That would be great (but I don't see any PM from you yet). Some of these pages explain the problem further. Note that the IETF draft is from 1999!

Reply

(The comment has been removed)

ron_newman March 12 2011, 12:01:56 UTC
Got it. I'll respond shortly.

Reply


Leave a comment

Up