From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 1A6B1BC84 for ; Wed, 30 Mar 2005 21:24:10 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2UJO9P2030269 for ; Wed, 30 Mar 2005 21:24:09 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA08245 for ; Wed, 30 Mar 2005 21:24:09 +0200 (MET DST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j2UJO8T9006495 for ; Wed, 30 Mar 2005 21:24:09 +0200 Received: by wproxy.gmail.com with SMTP id 69so281597wra for ; Wed, 30 Mar 2005 11:24:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=neK5Gi2iKxSs8PO4jBx5VITCQmRgIvo8uVXax3pu8k6CampsdR9XEq/vPZpcL42UXW5c73/ME5hUYZAxLLlX8N24pC+f9w6Bi4Vwe1GoOG49XCmZr/H4ZKgNFkGer0Z8LkxXzfas5vYk/7+Oh5/dqX7wJzZjTd60PRW9F65iBQo= Received: by 10.54.35.71 with SMTP id i71mr710537wri; Wed, 30 Mar 2005 11:24:07 -0800 (PST) Received: from ?192.168.0.12? ([195.209.229.226]) by mx.gmail.com with ESMTP id 8sm777591wrl.2005.03.30.11.24.06; Wed, 30 Mar 2005 11:24:07 -0800 (PST) Message-ID: <424AFCD1.9080601@gmail.com> Date: Wed, 30 Mar 2005 23:24:01 +0400 From: Dimitri Timofeev User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Xavier Leroy Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: Still problems with the main ocaml web page References: <20050330141949.67864.qmail@web50904.mail.yahoo.com> <20050330152901.GC18175@yquem.inria.fr> In-Reply-To: <20050330152901.GC18175@yquem.inria.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 424AFCD9.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 424AFCD8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; dimitri:01 dimitri:01 caml-list:01 ocaml:01 ocaml:01 wrote:01 workaround:01 workaround:01 supported:01 reproduce:01 caml:02 behave:02 languages:03 languages:03 seems:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.2 X-Spam-Level: Hello! Xavier Leroy wrote: >Of course the new site was tested with IE, and it works just fine on >my Windows installation. Something is happening that 1- we don't >understand, and 2- we can't reproduce. Another user suggested this >might have to do with language preferences in the browser, which could >expose a problem in content (language) negociation between the browser >and server. Any constructive advice on how to attack this problem is >most welcome. > > It seems that this problem may be related with Accept-Language HTTP header what is set by browser according to the user language preferences. I'm using Firefox 1.0.2 (Windows XP), and when I add English or French to the list of preferred languages, OCaml site works very well. But if I don't specify none of these, I get 'unknown/unknown' content type. It seems that caml.inria.fr web server can't handle the situation where none of supported languages (English, French) is specified in Accept-Language header. Maybe the best solution would be to change web server configuration and to make it behave just like Accept-Language="en" when Accept-Language is not specified or does not contain 'en' nor 'fr'. As a workaround, it is easy to us users to set up our browsers to request content in English or French in addition to our favorite languages :). This workaround works not only for Mozilla Firefox, but for MS IE too (at least version 6.0). Thank you for the excellent work you do! OCaml is a very good and useful language, and new OCaml site looks really nice! -- Dimitri