W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2000

Re: Bug in http header parsing ?

From: <jose.kahan@w3.org>
Date: Mon, 31 Jul 2000 10:00:56 +0200 (MET DST)
Message-Id: <200007310800.KAA01384@tuvalu.inrialpes.fr>
To: Francois Nicot <fnicot@silicom.fr>
CC: www-lib@w3.org
Hello Francois,

This isn't a bug.

libwww will only set the charset if it was sent in the HTTP header.  This
doesn't happen in the URL you gave:

========
telnet www.silicom.fr 80
Trying 194.79.190.27...
Connected to www.silicom.fr.
Escape character is '^]'.
GET /sams/sams_present.htm HTTP/1.1
Host: www.silicom.fr
Connection: Keep-alive
 
HTTP/1.1 200 OK
Date: Mon, 31 Jul 2000 07:52:53 GMT
Server: Apache/1.2.6 Red Hat
Last-Modified: Thu, 28 Oct 1999 06:55:02 GMT
ETag: "1204d-3eaf-3817f346"
Content-Length: 16047
Accept-Ranges: bytes
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html
===================

If the charset is set using the HTML META element, it'll be up to the
application that parses the HTML code to get it.

-Jose
Received on Monday, 31 July 2000 04:00:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:37 GMT