W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2002

Questions about libwww

From: Manuele Kirsch Pinheiro <Manuele.Kirsch_Pinheiro@inrialpes.fr>
Date: Tue, 12 Feb 2002 11:51:06 +0100
Message-ID: <3C68F39A.9020408@inrialpes.fr>
To: www-lib@w3.org
CC: Jose Kahan <jose.kahan@w3.org>
Hi everybody!

While building some example with libwww, I found some questions about 
the internal behavior of libwww. Maybe somebody can help me with these...

First question is about the request's output format: Did anybody knows 
how can I tell to libww that a server response (or the request's output 
stream)  may have two possible formats (for example, it may be a 
"application/xml" or a "text/xml")? And how can I tell to libwww that 
both formats should be accept and should use the default output stream 
that I setted (HTRequest_setOutputStream)?  Or how can I tell to libww 
"if MIME type x/y arrives, use stream s"?

Another question is about the XML parser - module HTXML. When using the 
Expat XML Parser present in that module , may I register differents 
callbacks for differents requests? (for example, request R1 uses 
callback cf1 as element handler, and request R2 uses callback cf2 as 
element handler) Did the HTXML module use the same XML_Parser object  
for all requests or does it create a new object for each request?

And, finally, did anybody knows how is the default behavior of libwww 
when unknown headers arrive from the network? Did the libwww ignore the 
unknwon headers or did it copy them to the header list in the Anchor 
object (HTAssocList * HTAnchor_header (HTParentAnchor *anchor)?

Thanks a lot!! :)

Received on Tuesday, 12 February 2002 05:48:24 UTC

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