Questions about libwww

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!! :)

Manuele

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