From sfalcon at fhcrc.org  Fri Jul 28 21:55:26 2006
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Fri, 28 Jul 2006 12:55:26 -0700
Subject: [Rd] [R] HTTP User-Agent header
In-Reply-To: <Pine.LNX.4.64.0607282018330.10512@gannet.stats.ox.ac.uk> (Brian
	Ripley's message of "Fri, 28 Jul 2006 20:26:22 +0100 (BST)")
References: <88a2333a0607280656r7f5b6e64ve6d03dd215433df2@mail.gmail.com>
	<Pine.LNX.4.64.0607281538020.20596@gannet.stats.ox.ac.uk>
	<m2u051k7c7.fsf@ziti.fhcrc.org>
	<88a2333a0607281022i825d415l2840e47697a859fa@mail.gmail.com>
	<44CA61A0.7090804@fhcrc.org>
	<Pine.LNX.4.64.0607282018330.10512@gannet.stats.ox.ac.uk>
Message-ID: <m2hd11ijwx.fsf@ziti.fhcrc.org>

Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:
> I also thought that there was no need for this level of complexity. 
> (BTW, some of the patch is changes Seth has made for other purposes, e.g. 
> that to memory.c, so please no one apply all of it.)

*blush* sorry about that.  I made the final diff from a src tree on
another machine and it was dirty.  memory.c should NOT have been
touched by my patch.

> I'd be happy for R to just identify itself as 'R', which seems allowed:
> (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).  But I am a bit 
> concerned that sites may not just require the field but also require a 
> particular format (even though W3C does not).

As long as it is going to identify itself, I think there is value in
having it provide version, platform, OS info.

Given the concern that some sites that currently work may stop working
(example?), perhaps making this a global option is a good compromise.
The option could be httpRequestHeader and the default value would be
as proposed in my patch.  A NULL value would result in the current
behavior, no extra header info in the request.



[Rd] [R] HTTP User-Agent header
Seth Falcon