POV-Ray : Newsgroups : povray.object-collection : Bad HTTP-headers in detail pages Server Time: 16 Dec 2018 22:04:34 GMT
  Bad HTTP-headers in detail pages (Message 1 to 4 of 4)  
From: Michael Scharrer
Subject: Bad HTTP-headers in detail pages
Date: 22 Aug 2015 08:45:01
Message: <web.55d8366e2415a8b2f398fffc0@news.povray.org>
The detail pages for objects are re served with bad http headers which causes
them to be rendered as text files. Basically the html source is shown. Example:
http://lib.povray.org/collection/roundedge/cousin%20ricky%201.3/roundedge.html

The cause seems to be this line in the http header:
    "Content-Type: text/plain"
Which should instead be
    "Content-Type: text/html"
as is the case with all other pages on povray.org

This is how it looks for me:
https://i.imgur.com/OSQBQjZ.png


Michael Scharrer, https://mscharrer.net


Post a reply to this message

From: Le Forgeron
Subject: Re: Bad HTTP-headers in detail pages
Date: 22 Aug 2015 14:17:18
Message: <55d8846e$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Le 22/08/2015 10:44, Michael Scharrer a écrit :
> The detail pages for objects are re served with bad http headers 
> which causes them to be rendered as text files. Basically the html
>  source is shown. Example: 
> http://lib.povray.org/collection/roundedge/cousin%20ricky%201.3/rounde
dge.html
>
>
>
> 
The cause seems to be this line in the http header: "Content-Type:
> text/plain" Which should instead be "Content-Type: text/html" as is
> the case with all other pages on povray.org
> 
> This is how it looks for me: https://i.imgur.com/OSQBQjZ.png
> 

I will say: It is known, and was done on purpose to fight spam-bot.

The html file is rendered fine when looking at the local file, but not
on the server.

As stated already (2014-09-03), it's a shame, and would Internet be a
nicer place it wouldn't be so.

My best hint, but not a fix : have a look at

http://stackoverflow.com/questions/4807132/view-as-mime-type-in-chrome-o
r-firefox

> http://stackoverflow.com/questions/4807132/view-as-mime-type-in-chrome
- -or-firefox
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iJwEAQEIAAYFAlXYhG0ACgkQhKAm8mTpkW1hNAQAqlMTkolBLcaV9o2f8Uwsk1bR
KYI/7qiGIxSvUtkjEd2eSSIvzpCKoJLH+AXLwBNa3QBwQUBofAxTipyNnfdpD7GG
wGSYWtsvfTba4/w8ZLEKYYFGSWbODnxFUG2ZfdNoZlzAr0acQjbQne5W/MVSMcl4
j1Qq60kT7d5fD1GtvpY=
=Ydci
-----END PGP SIGNATURE-----


Post a reply to this message

From: Warp
Subject: Re: Bad HTTP-headers in detail pages
Date: 3 Sep 2015 10:06:13
Message: <55e81b95@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:
> I will say: It is known, and was done on purpose to fight spam-bot.

I don't understand how returning a content-type of text/plain instead
of text/html helps fighting any spam-bots.

-- 
                                                          - Warp


Post a reply to this message

From: Le Forgeron
Subject: Re: Bad HTTP-headers in detail pages
Date: 3 Sep 2015 16:47:44
Message: <55e879b0$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Le 03/09/2015 12:06, Warp a écrit :
> Le_Forgeron <jgr### [at] freefr> wrote:
>> I will say: It is known, and was done on purpose to fight
>> spam-bot.
> 
> I don't understand how returning a content-type of text/plain
> instead of text/html helps fighting any spam-bots.
> 
Well... it turn the html injection into useless text, disabling links
the spammer wanted to add. (might be tied to robot, search engine and
references for scoring)

That's my understanding, I came after such change, I did not suggest it.

Anyway, I cannot change that.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iJwEAQEIAAYFAlXoea4ACgkQhKAm8mTpkW05hQP9EA1iXx+0J3SxpZuOQoVfeRMV
hT/ONLceOWPPxvglwD7tf8euysjMyzXJlOltOSNmxicfAGlu2PgPFg4OZNsg9jGQ
exqxvaolENj7jhkFPfHC2YIZu4i/2DefwqgyrmPLAxx2flEp8lQdpbM7vexupuTQ
QZ6z8/7IIkKznlqCGFk=
=ND5o
-----END PGP SIGNATURE-----


Post a reply to this message

Copyright 2003-2008 Persistence of Vision Raytracer Pty. Ltd.