🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #255806

Re: @Sandman, the graphics artist. 

#255806
From: Sandman
Date: Sat, 02 Nov 2013 20:49
72 lines
4369 bytes
In article <Jeff-Relf.Me@Nov.2{12.55.Seattle.2013}>, Jeff-Relf.Me wrote:

> > Sandman:
> > Incorrect, as has been explained in a very factual and detailed
> > way - AND demonstrated with examples - many times now.

> Obviously, you don't mind looking like the graphics artist that you
> are.

Not at all.

> All you know is slrn.

All you seem to know is lies. I've used slrn in the past, and just started 
to use it a couple of days ago. Iv'e used many news clients over the years, 
the most favorite one was MT-NewsWatcher, but it doesn't run on the latest 
version of my OS any longer, unfortunately.

> You've never tested your shit using apps from Google, Microsoft, Mozilla, 
> Yahoo, AoL and Apple. You don't use the DOM Inspector.

I don't test my "shit". You are free to test your shit any way you please, 
but don't post about it here, please.

> FireFox ( and Google Chrome ) say: << The image
> “http://usenet.sandman.net/plain/jeff.jpg” cannot be displayed
> because it contains errors.  >>

Exactly. Since it's a text file.

> In other words:

> "Content-Type: image/PNG" is in the header, as you know; so FireFox
> attempts/fails to display plain⋅text as an image.

As an PNG image, to be more precise.

> Why ?  Because "Content-Type:", and "Content-Type:" alone,
> determines how you should display it ( if you can ).

Oh - so it no longer defines the content? Only how it should be displayed? 
It seems my lessons has taught you something, very good, Jeff!

This may very well be the first correct thing you've ever said. The 
content-type is indeed a way for the web server to tell the web browser 
what kind of data to expect - based on the file extension.

But why do we need a content-type for that, dear little Jeff? Can't the web 
browser see the file extension itself and determine that all by itself?

Oh, but you see, HTTP is a bit trickier than that, little boy! You see, 
when you go to "http://www.google.com" - you can't see any file extension, 
the web browser doesn't know what to expect from this address, it only 
requests the path "/" from the web server, which can serve up "index.html", 
"default.htm" or "index.php" for instance, or "jeffisignorant.jpg" as well! 
So it needs to send along a content-type because not all file extensions 
are know.

But but but... I hear you say - when the file extension IS know - why does 
it still send it along? Well, you see - the web server is considered the 
authority over the file extension since site administrators could possible 
decide that some file extensions should be treated as something else - such 
as "index.php" - the web browser does not know how to deal with ".php", and 
indeed - a PHP file can output ANY data, an image, a PDF file, a HTML 
document - anything! So the PHP script tells the web server what 
content-type it should sent to the client.

There - another free HTTP/HTML lesson from Sandman to Jeff


-- 
Sandman[.net]
Technical Details
Message-ID: <slrnl7apap.13j.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!et7no8300717wib.1!news-out.google.com!ed8ni3068wic.0!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <slrnl74a9k.kqc.mr@irc.sandman.net> <Jeff-Relf.Me@Oct.31{19.36.Seattle.2013}> <slrnl76s8a.jn.steve@snorky.mixmin.net> <7ftl2k2ztnlf.1l0x66nuo6fcg.dlg@40tude.net> <Jeff-Relf.Me@Nov.1{19.16.Seattle.2013}> <slrnl79es9.rpj.mr@irc.sandman.net> <Jeff-Relf.Me@Nov.2{12.55.Seattle.2013}>

Show Full Headers
Complete Article Headers
Message-ID: <slrnl7apap.13j.mr@irc.sandman.net>
Subject: Re: @Sandman, the graphics artist. 
Date: Sat, 02 Nov 2013 20:49:25 +0000
From: Sandman <mr@sandman.net>
References: <slrnl74a9k.kqc.mr@irc.sandman.net> <Jeff-Relf.Me@Oct.31{19.36.Seattle.2013}> <slrnl76s8a.jn.steve@snorky.mixmin.net> <7ftl2k2ztnlf.1l0x66nuo6fcg.dlg@40tude.net> <Jeff-Relf.Me@Nov.1{19.16.Seattle.2013}> <slrnl79es9.rpj.mr@irc.sandman.net> <Jeff-Relf.Me@Nov.2{12.55.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!et7no8300717wib.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.180.81.99 with SMTP id z3mr3404695wix.1.1383425367346;
Newsgroups: news.software.readers,alt.free.newsservers
Lines: 72
Mime-Version: 1.0
X-Trace: individual.net YqtN0iLG5v3nal1pqE39xAKsc282yGsWpmZ89Q8fF0AnZZ/aE=
Cancel-Lock: sha1:BHcRABjlvD/QOcxQbsl4T2S8iY8=
User-Agent: slrn/pre1.0.0-18 (Linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Original-Bytes: 4129