W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2000

How to forge Content-type Mime header

From: Michael Kifer <kifer@cs.sunysb.edu>
Date: Tue, 04 Apr 2000 22:40:00 -0400
Message-Id: <200004050240.WAA09729@sbcs.cs.sunysb.edu>
To: www-lib@w3.org

Is there a reasonably simple way to substitute the Content-type mime header 
sent by the web server?

For instance, many servers don't send text/xml when they serve an XML document.
So, libwww sees text/plain instead and fails to call the callbacks for the
XML parser. 

It seems that somebody tried to make it possible to change the format on
the fly (HTAnchor_setFormat), but this feature doesn't seem to be
integrated into the library.

I am looking for a way to do this on a per-request basis in an environment
where multiple requests can be dispatched at the same time (both xml and
HTConversion_add seems tricky to use in such a situation.

Michael Kifer
Received on Tuesday, 4 April 2000 22:43:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:52 UTC