Previous Message
Next Message

Valid CSS image animated GIF?

Sent by Brian V Bonini on 23 January 2004 16:04


On Fri, 2004-01-23 at 07:17, Jonathan Hunt wrote:
> > > What's up with the valid CSS image being a 124K animated GIF?
> >
> > It's a 1.1k .png for me
> 
> Yeah, it's definitely around the 1k mark, and it's definitely a gif...

Actually the gif is 1.5k. If you telnet in like that you are not sending
the "Accept:" header like your browser does so the server does not know
you are able to accept the image/png mime-type. Try it and send an
Accept header letting the server know you will accept the image/png
mime-type and it will give you a 1.1k .png.

$ telnet jigsaw.w3.org 80 | strings
Trying 138.96.249.65...
Connected to w3c5.inria.fr (138.96.249.65).
Escape character is '^]'.
GET /css-validator/images/vcss HTTP/1.0
Accept:image/png

HTTP/1.1 200 OK
Connection: keep-alive,close
Date: Fri, 23 Jan 2004 16:10:08 GMT
Content-Length: 1134
Content-Location: http://jigsaw.w3.org:80/css-validator/images/vcss.png
Content-Md5: NZhlZ8jEbvf+L9b3afjqsw==
Content-Type: image/png
Etag: "btg4dc:ti8k0mv0"
Expires: Thu, 29 Jan 2004 16:10:08 GMT
Last-Modified: Sat, 15 Mar 2003 22:14:13 GMT
Server: Jigsaw/2.2.3
Vary: Accept
IHDR
)PLTE
g}}}}
Qmmm
\UH\UHOOO
s]K$
NK@NK@
OOQD<,$
^}e1
mX+&Y
WSP<<<
//,,,
ctRNS
IDATx
3h|{/
oc@TGliY<
` C1
A,5z
@(-G'j%
IEND
Connection closed by foreign host.


> What I found most interesting is that the gif itself has the
> text "Valid CSS!" embedded in the binary.

Because you can embed comments in a .gif file you'll notice you do not
see that in the above .png output.


-- 
Brian        GnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys
                                          Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
GnuPG: http://gnupg.org
http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC
Linux Registered User #339825 at http://counter.li.org

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: