Return-Path: Delivered-To: apmail-abdera-user-archive@www.apache.org Received: (qmail 10748 invoked from network); 21 Jan 2011 09:49:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jan 2011 09:49:37 -0000 Received: (qmail 76155 invoked by uid 500); 21 Jan 2011 09:49:37 -0000 Delivered-To: apmail-abdera-user-archive@abdera.apache.org Received: (qmail 75975 invoked by uid 500); 21 Jan 2011 09:49:34 -0000 Mailing-List: contact user-help@abdera.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@abdera.apache.org Delivered-To: mailing list user@abdera.apache.org Received: (qmail 75967 invoked by uid 99); 21 Jan 2011 09:49:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 09:49:33 +0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of alimanfoo@googlemail.com designates 74.125.82.46 as permitted sender) Received: from [74.125.82.46] (HELO mail-ww0-f46.google.com) (74.125.82.46) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 09:49:27 +0000 Received: by wwj40 with SMTP id 40so1687523wwj.3 for ; Fri, 21 Jan 2011 01:49:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=z2qdG6Mn5EPclrzou72lOy9Ipd4NQS4f6K0tSXziBgA=; b=LPQCdTbA6noxfJaMW4G93Ki8xxqrcBwnXENV0qZ5mfkeKMRUOxUM+ORVT2WeagL9gi O/8CjqnMvZF20eT6l5FwgdVqwmCOr+Ceok7ZG+OslbqvR+fl3NSU1ClrT+pROt5zI9Yb XtVDFK0OlrazkSctudCGfEsaavoDGylQUw1j4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=FFHoIw0KUM4kqkdBekooW5j9nVPE3LTwmsTfSf4TNiimc0N6U89whlz/HJvxy1dQ0w Y+/NkRfosOCZFzGLibCOTzETF9ltiL4yhd3Sg5SYz6FVGEFh1EI8+tyt6tgrg4ji+Ycr 3z0FJytqvka4pDQHRyIrtteBcz6In3V9HiHEA= Received: by 10.227.141.142 with SMTP id m14mr448658wbu.88.1295603346738; Fri, 21 Jan 2011 01:49:06 -0800 (PST) Received: from aliman-desktop (dhcp414.well.ox.ac.uk [129.67.46.1]) by mx.google.com with ESMTPS id n78sm4784745weq.3.2011.01.21.01.49.05 (version=SSLv3 cipher=RC4-MD5); Fri, 21 Jan 2011 01:49:06 -0800 (PST) Date: Fri, 21 Jan 2011 09:49:03 +0000 From: Alistair Miles To: user@abdera.apache.org Cc: atombeat@googlegroups.com Subject: abdera client default accept header Message-ID: <20110121094903.GB2802@aliman-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Checked: Checked by ClamAV on apache.org Hi abdera folks, Not sure if this is important, but I was doing some work on implementing server-driven conneg for an atom protocol implementation yesterday and noticed that the default accept header sent by abdera client 1.1.1... application/atom+xml;type=entry, application/atom+xml;type=feed, application/atom+xml, application/atomsvc+xml, application/atomcat+xml, application/xml, text/xml, */* ...could probably do with some quality values. As it is, because there are no q-values, if the server has a slight preference for anything other than atom, then the abdera client will *not* get atom, because of the catch-all "*/*". Dealing with this kind of accept header requires the server to fiddle q-values as described in the apache server conneg docs [1]. While many servers implementing conneg will probably fiddle quality scores as per apache, abdera client might better send an accept header like: application/atom+xml;type=entry; q=1.0, application/atom+xml;type=feed; q=1.0, application/atom+xml; q=1.0, application/atomsvc+xml; q=1.0, application/atomcat+xml; q=1.0, application/xml; q=0.5, text/xml; q=0.5, */*; q=0.01 Cheers, keep up the great work. Alistair [1] http://httpd.apache.org/docs/2.2/content-negotiation.html#better -- Alistair Miles Head of Epidemiological Informatics Centre for Genomics and Global Health The Wellcome Trust Centre for Human Genetics Roosevelt Drive Oxford OX3 7BN United Kingdom Web: http://purl.org/net/aliman Email: alimanfoo@gmail.com Tel: +44 (0)1865 287669