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
html).
HTConversion_add seems tricky to use in such a situation.



Thanks,
Michael Kifer
kifer@cs.sunysb.edu 
Received on Tuesday, 4 April 2000 22:43:35 GMT

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