🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #255789

Re: "Content-Type", and "Content-Type" alone, defines the content. 

#255789
From: Sandman
Date: Sat, 02 Nov 2013 08:11
70 lines
4245 bytes
In article <Jeff-Relf.Me@Nov.1{16.36.Seattle.2013}>, Jeff-Relf.Me <> wrote:

>  "jeff.jpg" is a ⋅BORKED⋅ JPEG.

So you lied when you said that "Content-Type" defines the content, because 
"Content-Type" says it's a PNG file.
 
>  BOTH you @Sandman and snipped the part where
>  FireFox ( and Google Chrome ) say: <<
> 
>    The image “http://usenet.sandman.net/plain/jeff.jpg” 
>    cannot be displayed because it contains errors.  >>
> 
>  "Content-Type", and "Content-Type" alone, defines the content.

But above you say it's a JPG file, the content-type is disagreeing with 
you.

>  How many times do I have to explain this ultra⋅simple idea ?

Not one single time should you repeat this ignorant drivel.

Facts:

	http://usenet.sandman.net/plain/jeff.jpg
	Content-Type: image/png
	File contents: plain text
	File extension: jpg

According to ignorant Jeff, this is a "borked" JPG, ignoring that the 
content-type which HE claims is defining the *contents* of the file says it 
is a image/png file, not a jpg - yet he insists on calling it a jpg file, 
due to it having a "jpg" extension, so his claims are now that the 
content-type header AND the file extension defines the *content* of the 
file, yet neither describe the actual content of this particular file, 
since it is a text file.

In the end, file extensions and content-type can be changed around by the 
user, meaning that it is not and never was something that had *anything* to 
do with the actual content of the file.

This is an explanation for the benefit of those that may actually (still) 
think that Jeff has any idea about what he is talking. Jeff will just snip 
all these facts away like he always does.

When your web browser requests a file, the web *server* will map the 
extension of that file to a file called /etc/mime.types. The entry for a 
jpg file looks like this in that file:

image/jpeg					jpeg jpg jpe

That's all. The first part is the "content-type" that will be sent, and the 
second part is what file extensions it will apply it to. Simple as that. If 
I were to change this line in the file to read "application/pdf", the web 
server would report that content-type for these files, yet the web 
server wouldn't go around converting the content of all my JPG files to 
PDF's, it would just incorrectly show "application/pdf" for jpg files.

So, in the end, the "content-type" is a predefined set of types tied to the 
*file extension* of the file being requested. It has no idea about the 
content of the file - imagine the web server having to parse and verify the 
content of each and every file it serves up!

And if it DID - Jeff's homepage would have the content-type text/plain 
since it couldn't have verified it to be adhering to the HTML standard.



-- 
Sandman[.net]
Technical Details
Message-ID: <slrnl79ct2.rpj.mr@irc.sandman.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!et7no7213011wib.1!news-out.google.com!ed8ni3068wic.0!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <Jeff-Relf.Me@Nov.1{11.21.Seattle.2013}> <slrnl77v00.po3.mr@irc.sandman.net> <Jeff-Relf.Me@Nov.1{12.38.Seattle.2013}> <slrnl7830n.po3.mr@irc.sandman.net> <Jeff-Relf.Me@Nov.1{13.30.Seattle.2013}> <slrnl788b7.q9d.mr@irc.sandman.net> <Jeff-Relf.Me@Nov.1{16.36.Seattle.2013}>

Show Full Headers
Complete Article Headers
Message-ID: <slrnl79ct2.rpj.mr@irc.sandman.net>
Subject: Re: "Content-Type", and "Content-Type" alone, defines the content. 
Date: Sat, 02 Nov 2013 08:11:12 +0000
From: Sandman <mr@sandman.net>
References: <Jeff-Relf.Me@Nov.1{11.21.Seattle.2013}> <slrnl77v00.po3.mr@irc.sandman.net> <Jeff-Relf.Me@Nov.1{12.38.Seattle.2013}> <slrnl7830n.po3.mr@irc.sandman.net> <Jeff-Relf.Me@Nov.1{13.30.Seattle.2013}> <slrnl788b7.q9d.mr@irc.sandman.net> <Jeff-Relf.Me@Nov.1{16.36.Seattle.2013}>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!et7no7213011wib.1!news-out.google.com!ed8ni3068wic.0!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
X-Received: by 10.112.132.40 with SMTP id or8mr2575946lbb.16.1383379873192;
Newsgroups: news.software.readers,alt.free.newsservers
Lines: 70
Mime-Version: 1.0
X-Trace: individual.net ChHJlbUF5wBMw9RANRYSOQPKPmO5Jzm+Y8GTc9XQJKejHzRks=
Cancel-Lock: sha1:YOgGIKri2aw02XOgA7yKxpfE8mQ=
User-Agent: slrn/pre1.0.0-18 (Linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Original-Bytes: 4007