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

HTAnchor_format() return value.

From: James Gallagher <jimg@dcz.cvo.oneworld.com>
Date: Fri, 24 May 96 16:58:50 PDT
Message-Id: <9605242358.AA16129@dcz.cvo.oneworld.com>
To: www-lib@w3.org
Once I have fetched a URL I can find the return document's Content-Type
header information using HTAnchor_format() (which returns an HTAtom object).
However, I have a document whose Content-Type header *was* test/plain when
the server sent it but on the client-side HTAnchor_format() shows it as
`www/unknown'. Can anyone explain this behavior? 

Does this have to do with the converters registered for the stream/library? 

I have initialized the library so that the following converters are being

    _conv = HTList_new();

    // GENERIC converters

    HTConversion_add(_conv,"multipart/*", "*/*", HTBoundary, 1.0, 0.0, 0.0);
    HTConversion_add(_conv,"message/rfc822", "*/*", HTMIMEConvert, 
		     1.0, 0.0, 0.0);
    HTConversion_add(_conv,"text/x-http", "*/*", HTTPStatus_new,
		     1.0, 0.0, 0.0);


And the request object is bound to a HTStream created by HTFWriter_new().


James Gallagher		         The Distributed Oceanographic Data System
jgallagher@gso.uri.edu                            http://dods.gso.uri.edu/
Received on Friday, 24 May 1996 19:58:58 UTC

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