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

Accept-Header?

From: <Timo.Ross@ic3s.de>
Date: Wed, 27 Jun 2001 17:12:45 +0200
To: www-lib@w3.org
Message-ID: <OF22FA8A87.63B62BB4-ONC1256A78.00522C19@ic3s.de>
Hello.
I have a little problem ( I hope (o; ) ...
I want to have influence on the accept headers send with a request. The way
I do it can not be the right way.
I add my own conversion like "HTFormat_addConversion("text/vnd.wap.wml",
"www/wap", HTThroughLine, 1.0, 0.0, 0.0)" and set the output format of my
request with "HTRequest_setOutputFormat(request, HTAtom_for("www/wap"))".
If I now access a wml page everything works fine, but if I access e.g a
html
page the content disappear into black hole, the content is empty, but the
status of the request is still 200 instead of 406!

What have I to do to get the status 406, if I access a page with the
"wrong" content type ?

Has anybody a hint ?
Thanks Timo!
Received on Wednesday, 27 June 2001 11:13:22 GMT

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