Subject: Precedence Accept/Accept-Language

From: Reto Bachmann-Gmuer <[email-masked]>
Date: Mon, 08 Mar 2004 13:34:18 +0100

Hello

I'm implementing an http-server an I'm insecure on how to handle the
priorities in content-negotiation.

Suppose a client sends a request with

Accept: text/html, text/xml; q=.8
Accept-Language: de, en; q=.8

The server has a text/xml version in en and de, but text/html only in
en, which version should be returned? Should it behave differntly with

Accept: text/html, text/xml; q=.8
Accept-Language: de, en; q=.6

or

Accept: text/html, text/xml; q=.6
Accept-Language: de, en; q=.8

Thanks for your help!

Reto