🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #255796

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

#255796
From: §ñühwö£f
Date: Sat, 02 Nov 2013 16:28
78 lines
5025 bytes
Sandman wrote:
> 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.
> 
> 
Interesting. Sounds like a way to hide the actual content of a file. Not 
that anyone would want do such a thing :)

-- 
http://signon.org/sign/protect-americas-wolves
www.snuhwolf.9f.com|www.savewolves.org
    _____  ____  ____ __ /\_/\ __      _ ______   _____
   / __/ |/ / / / / // // . . \\ \ |\ | / __ \ \  \  __\
  _\ \/    / /_/ / _  / \     / \ \| \| \ \_\ \ \__\  _\
/___/_/|_/\____/_//_/   \_@_/   \__|\__|\____/\____\_\
Technical Details
Message-ID: <l5397g$22b$16@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!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}> <slrnl79ct2.rpj.mr@irc.sandman.net>

Show Full Headers
Complete Article Headers
Message-ID: <l5397g$22b$16@dont-email.me>
Subject: Re: "Content-Type", and "Content-Type" alone, defines the content. 
Date: Sat, 02 Nov 2013 10:28:10 -0600
From: §ñühwö£f <snuhwolf@netscape.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}> <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-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers,alt.free.newsservers
Organization: vast liberal conspiracy
Lines: 78
Reply-To: snuhwolf@yahoo.com
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 2 Nov 2013 16:28:33 +0000 (UTC)
Injection-Info: mx05.eternal-september.org;
 posting-host="15d11ac78d82d088b1e252aa59611346";
 logging-data="2123"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX1+h3+s9z5MOjk0uj23ZiWd3"
User-Agent: Thunderbird 2.0.0.20pre (BeOS/20090227)
In-Reply-To: <slrnl79ct2.rpj.mr@irc.sandman.net>
Cancel-Lock: sha1:tMkYMAyJR5VWfUyQ3TQE63RDiw4=