Subject: New page redirection method
Hello,
in my recent test with UNB 1.6 in PHP5.1/FastCGI with the APC cache, which worked all fine by now, I found one problem in the current UNB code: The page redirection sends a "Status: 303" HTTP header, besides the "Location" header, to signal search engines, bots or whatever that this is a special kind of redirection, not a temporary or an error kind. Sending this HTTP header caused my local web server setup to show an error message complaining about a duplicate HTTP header. So I watched a little around and changed the "Status: 303" header to a "HTTP/1.1 303 See other" header. This seems to work fine in PHP5.1/FastCGI, PHP5.1/CGI and PHP4/CGI for now. But I'm not so sure about the HTTP 1.1 part. I've heard some web proxies still use HTTP 1.0 or something.
I've now updated the UNB version on this site, so could you please test if that kind of redirection works for you? The easiest way would be to submit a form like the login, the settings page or a add/preview a posting - not the search form. Preferably using a web proxy. Please tell me what your results were. Thanks in advance.
If anybody knows a better solution for sending status codes with a FastCGI server, or detect the environment, please let me know.
I expect UNB 1.6.1 to be released sometime in January. There have been some fixes since 1.6 already.
in my recent test with UNB 1.6 in PHP5.1/FastCGI with the APC cache, which worked all fine by now, I found one problem in the current UNB code: The page redirection sends a "Status: 303" HTTP header, besides the "Location" header, to signal search engines, bots or whatever that this is a special kind of redirection, not a temporary or an error kind. Sending this HTTP header caused my local web server setup to show an error message complaining about a duplicate HTTP header. So I watched a little around and changed the "Status: 303" header to a "HTTP/1.1 303 See other" header. This seems to work fine in PHP5.1/FastCGI, PHP5.1/CGI and PHP4/CGI for now. But I'm not so sure about the HTTP 1.1 part. I've heard some web proxies still use HTTP 1.0 or something.
I've now updated the UNB version on this site, so could you please test if that kind of redirection works for you? The easiest way would be to submit a form like the login, the settings page or a add/preview a posting - not the search form. Preferably using a web proxy. Please tell me what your results were. Thanks in advance.
If anybody knows a better solution for sending status codes with a FastCGI server, or detect the environment, please let me know.

I expect UNB 1.6.1 to be released sometime in January. There have been some fixes since 1.6 already.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬

Yves
Show profile
Link to this post