Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

error(?) "302 Found" on Validator XHTML W3C

Question posted by: dlsan (Guest) on August 5th, 2005 01:25 PM
Hello to everybody.

I'm working in Italy on this website
http://www.fondazioneantonioruberti.it/ariene/
as css/xhtml/graphic designer in cooperation with a php programmer and
a ISP provider.
The site is still in test but i'm having no answer from
http://validator.w3.org/ except "302 found" for this page
http://www.fondazioneantonioruberti.it/ariene/
and also
http://www.fondazioneantonioruberti.it/ariene/index.php .

I've tried to follow these warnings
http://www.checkupdown.com/status/E302.html
and
http://www.w3.org/Protocols/rfc2616....html#sec10.3.3

But i've no idea wher should be the problem, and the php programmer and
ISP seem to want to ignore these thread i've suggested to them (maybe
for problem with english? ).
Anyway, please, does somebody have solved in the past somthing similar?

Thanks in advance.

All the best.

Matteo - www.dlsan.org - www.mscreativestudio.com

Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Kim André Akerĝ's Avatar
Kim André Akerĝ
Guest
n/a Posts
August 5th, 2005
02:15 PM
#2

Re: error(?) "302 Found" on Validator XHTML W3C
dlsan wrote:
[color=blue]
> Hello to everybody.
>
> I'm working in Italy on this website
> http://www.fondazioneantonioruberti.it/ariene/
> as css/xhtml/graphic designer in cooperation with a php programmer and
> a ISP provider.
> The site is still in test but i'm having no answer from
> http://validator.w3.org/ except "302 found" for this page
> http://www.fondazioneantonioruberti.it/ariene/
> and also
> http://www.fondazioneantonioruberti.it/ariene/index.php .
>
> I've tried to follow these warnings
> http://www.checkupdown.com/status/E302.html
> and
> http://www.w3.org/Protocols/rfc2616....html#sec10.3.3
>
> But i've no idea wher should be the problem, and the php programmer
> and ISP seem to want to ignore these thread i've suggested to them
> (maybe for problem with english? ).
> Anyway, please, does somebody have solved in the past somthing
> similar?[/color]

Fix your code, perhaps?

http://www.fondazioneantonioruberti.it/ariene/index.php
Loading this URL in Lynx show the following headers:
------------------------------------------------
HTTP/1.1 302 Found
Date: Fri, 05 Aug 2005 14:08:46 GMT
Server: Apache/1.3.23 (Unix) (Red-Hat/Linux) DAV/1.0.3 PHP/4.3.10
mod_perl/1.2
6
X-Powered-By: PHP/4.3.10
Set-Cookie: PHPSESSID=1405374a1fc50052b1679dfb83d9d687; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache
Location: http://www.fondazioneantonioruberti.it/ariene/index.php
Connection: close
Content-Type: text/html
------------------------------------------------

In essence, http://www.fondazioneantonioruberti.it/ariene/index.php
tries to redirect to itself, something which would cause an endless
loop.

--
Kim André Akerĝ
- Join Bytes!
(remove NOSPAM to contact me directly)

Harlan Messinger's Avatar
Harlan Messinger
Guest
n/a Posts
August 5th, 2005
02:25 PM
#3

Re: error(?) "302 Found" on Validator XHTML W3C
dlsan wrote:[color=blue]
> Hello to everybody.
>
> I'm working in Italy on this website
> http://www.fondazioneantonioruberti.it/ariene/
> as css/xhtml/graphic designer in cooperation with a php programmer and
> a ISP provider.
> The site is still in test but i'm having no answer from
> http://validator.w3.org/ except "302 found" for this page
> http://www.fondazioneantonioruberti.it/ariene/
> and also
> http://www.fondazioneantonioruberti.it/ariene/index.php .[/color]

Very strange, because I got the same result as you from the validator,
but I just requested the latter URL with the network monitor on, and the
request definitely came back with a 200 status.

dlsan's Avatar
dlsan
Guest
n/a Posts
August 5th, 2005
04:55 PM
#4

Re: error(?) "302 Found" on Validator XHTML W3C
Kim André Akerĝ wrote:
[color=blue]
> Fix your code, perhaps?
>
> http://www.fondazioneantonioruberti.it/ariene/index.php
> Loading this URL in Lynx show the following headers:[/color]
....[color=blue]
> ------------------------------------------------
>
> In essence, http://www.fondazioneantonioruberti.it/ariene/index.php
> tries to redirect to itself, something which would cause an endless
> loop.[/color]

Thanx!
Lynx, right.
It's just one step beyond.
We'll try to deepen this way.

Matteo


David Dorward's Avatar
David Dorward
Guest
n/a Posts
August 5th, 2005
07:35 PM
#5

Re: error(?) "302 Found" on Validator XHTML W3C
dlsan wrote:
[color=blue]
> The site is still in test but i'm having no answer from
> http://validator.w3.org/ except "302 found" for this page
> http://www.fondazioneantonioruberti.it/ariene/[/color]

It looks like the PHP script tests for the presence of a cookie, if it isn't
found it tries to set it, then redirects the user back to the same page.

If the user agent doesn't support, or has disabled, cookies (and the Markup
Validator is such a user agent), then this ends up with an infinite loop.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

 
Not the answer you were looking for? Post your question . . .
183,813 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors