[Prev][Next][Index][Thread]
Upgrade of W3C Reference Library
-
To: www-lib@w3.org
-
Subject: Upgrade of W3C Reference Library
-
From: Markku Savela <msa@msa.tte.vtt.fi>
-
Date: Tue, 13 Feb 1996 16:00:12 +0200 (EET)
-
From msa@msa.tte.vtt.fi Tue Feb 13 09: 03:14 1996
-
In-Reply-To: Henrik Frystyk Nielsen's message of Mon, 12 Feb 1996 13:13:40 -0500 <9602121813.AA02338@www20>
-
Message-Id: <199602131400.QAA00169@msa.tte.vtt.fi>
-
Reply-To: msa@hemuli.tte.vtt.fi (Markku Savela)
I updated to the library 4.0D, and again got lost with my converters.
With 4.0B, the following set
HTConversion_add(conv,"text/*","*/*", TextObject, 1.0,0.0,0.0);
HTConversion_add(conv,"image/*","*/*", ImageObject, 1.0,0.0,0.0);
HTConversion_add(conv,"message/rfc822","*/*",
HTMIMEConvert,1.0,0.0,0.0);
HTConversion_add(conv,"text/html","*/*", HtmlObject, 1.0,0.0,0.0);
got me a call to HtmlObject for "text/html".
Now, the *same* code linked against the 4.0D library gives from the
same document a call to TextObject (and when I print the
input_format->name, it is "text/x-http"). What changed? Why this
happens?
The new HTLine.c seems to add a new thing, what was not there before
HTConversion_add(conv,"text/x-http","*/*",HTTPStatus_new,1.0, 0.0, 0.0);
This is now required for my scheme to work? Because, when I added
this, the program started to work again.
However, I would like to know why. What should I read to get a better
idea what happens with these conversions (something that would
describe what the matching rules are, how the parameters of the
HTConversion_add are actually used?)
--
Markku Savela (msa@hemuli.tte.vtt.fi), Technical Research Centre of Finland
Multimedia Systems, P.O.Box 1203,FIN-02044 VTT,http://www.vtt.fi/tte/staff/msa/
References: