views:

24

answers:

1

Has anyone seen or heard of Opera having redirect issues? I have a PHP script that POSTs back to itself, sets up some variables and then redirects to another page. This fails on a Linux box but works with no issues on Windows.

EDIT:

I also need to mention that redirect works well and as expected in Chrome, FF and IE. Redirect works in ALL browsers, Opera included if I'm on a windows machine. When I move my code to my Linux server, redirect breaks in Opera.

Why does everything work on Windows and not in Linux? How does the browser know the difference? I honestly don't even know where to begin looking.

A: 

Saw this sometimes with Konqueror a few years ago - I tend to avoid PRG as it often causes more problems than it solves (as evidenced here) but had a similar problem where more than one consecutive redirect (PRGRG - OMG!) failed.

When I move my code to my Linux server, redirect breaks in Opera.

But that sounds like something completely different. I could understand if it broke everywhere - that'd point to a text conversion problem causing output to the body of the page before the header() cal (and hence the header call would fail). I suggest you look at a wiretap of the requests/responses for the 2 servers and see if you can see a difference.

symcbean
For example use Microsoft Fiddler HTTP debugger from http://www.fiddler2.com/ to see what headers are sent, then check if they differ when you run this locally and when it is run on the server..
hallvors