Re: Bug in http header parsing ?

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 UTC