Not logged in. · Lost password · Register
Forum: News and announcements RSS
New page redirection method
Need your feedback!
Reply
Avatar
Reply · Quote Yves (Administrator) #1
User title: UNB developer & webmaster
Member since Jan 2004 · 3740 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
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.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Avatar
Reply · Quote halr9000 #2
User title: Psi Webmaster
Member since Jul 2004 · 157 posts · Location: Atlanta, Georgia, USA
Group memberships: Members
Show profile · Link to this post
works fine here thru my work proxy.
-hal
http://psi.affinix.com
http://halr9000.com
Avatar
Reply · Quote løde #3
Member since Aug 2004 · 431 posts · Location: Alkmaar, The Netherlands
Group memberships: Members
Show profile · Link to this post
I don't know if I did right, but these are my results. Using a server that connects via proxy AFAIK, loggin in and previewing a post works just fine. The only thing is that when loggin in with the standard info "Name/ID" I get a 404: The requested URL /forum;err=2;name=Naam/ID was not found on this server.

And I used http://proxify.com/, but I'm not sure if that is what you meant? Then I get only plain text..
"Want walvissen kunnen immers ook niets, maar zijn toch"
Avatar
Reply · Quote Yves (Administrator) #4
User title: UNB developer & webmaster
Member since Jan 2004 · 3740 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I don't know what that proxify thing is, but it apparently cannot handle XHTML websites. Not sure how wide spread they are on the underground pages. ;)

The 404 error seems to be a more general problem with "/" characters used as URL parameters. I'll investigate this.

Additional question: Have you set something like "use HTTP/1.0 for proxies" in your web browser? Should be near the "use HTTP/1.1" setting.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Avatar
Reply · Quote løde #5
Member since Aug 2004 · 431 posts · Location: Alkmaar, The Netherlands
Group memberships: Members
Show profile · Link to this post
Quote by Yves:
Not sure how wide spread they are on the underground pages. ;)

Indeed :)

Additional question: Have you set something like "use HTTP/1.0 for proxies" in your web browser? Should be near the "use HTTP/1.1" setting.

Hmm, I can't find an option like that in Firefox 1.5 or IE 6 I have running here. In Opera I have such an option, but there seem to be problems with the proxy... Will try it next week, then I have contact with the network systemadmin of that server.
"Want walvissen kunnen immers ook niets, maar zijn toch"
Avatar
Reply · Quote Yves (Administrator) #6
User title: UNB developer & webmaster
Member since Jan 2004 · 3740 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Firefox 1.5:
Go to the address "about:config" and look for the setting "network.http.proxy.version". It's "1.1" for me. Maybe using a proxy and setting it to "1.0" makes problems. I have no proxy here to test this.

Internet explorer 6:
Menu "Extras", "Internet Settings", Tab "Advanced", Group "Settings for HTTP 1.1", Option "Use HTTP 1.1 for proxy connections". It's disabled on my system.

Maybe a HTTP 1.1 capable browser doesn't even care if the server reply uses a newer protocol than the request was? And browsers that can be used with UNB should understand HTTP 1.1 in any case. ;)
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Reply
Go to forum
This board is powered by the Unclassified NewsBoard software, 20100516-dev, © 2003-10 by Yves Goergen
Page created in 220 ms (176 ms) · 69 database queries in 140 ms
Current time: 2010-07-30, 10:48:49 (UTC +02:00)