Re: [R] HTTP User-Agent header

From: Prof Brian Ripley <>
Date: Sat 29 Jul 2006 - 00:43:34 EST

What OS is this?

If Windows, see the rw-FAQ Q2.19.

Otherwise, see ?download.file and choose a different download method, or look at the source code (src/modules/internet/nanohttp.c) and submit a patch.

On Fri, 28 Jul 2006, James P. Howard, II wrote:

> I am using R in an environment where the HTTP proxy server blocks
> browsers that do not send User-Agent strings.

Given how incredibly easy they are to fake, why?

> Through some testing, we have determined that R, by default (2.3.1) does
> not send a string when performing the chooseCRANmirror() function. Is
> there a setting

BTW, the chooseCRANmirror() function does not do HTTP: download.file() and url() do and the help is at ?download.file.

> that allows us to manually set the User-Agent value?
> Thank you, James

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sat Jul 29 00:54:34 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 29 Jul 2006 - 02:16:20 EST.

Mailing list information is available at Please read the posting guide before posting to the list.