Re: [Rd] [R] HTTP User-Agent header

2006-07-31 Thread Robert Gentleman
should appear at an R-devel near you... thanks Seth Seth Falcon wrote: > Robert Gentleman <[EMAIL PROTECTED]> writes: >> OK, that suggests setting at the options level would solve both of your >> problems and that seems like the best approach. I don't really want to >> pass this around as a par

Re: [Rd] [R] HTTP User-Agent header

2006-07-30 Thread Seth Falcon
Robert Gentleman <[EMAIL PROTECTED]> writes: > OK, that suggests setting at the options level would solve both of your > problems and that seems like the best approach. I don't really want to > pass this around as a parameter through the maze of functions that might > actually download something

Re: [Rd] [R] HTTP User-Agent header

2006-07-28 Thread Seth Falcon
Prof Brian Ripley <[EMAIL PROTECTED]> 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

Re: [Rd] [R] HTTP User-Agent header

2006-07-28 Thread Robert Gentleman
OK, that suggests setting at the options level would solve both of your problems and that seems like the best approach. I don't really want to pass this around as a parameter through the maze of functions that might actually download something if we don't have to. I think we can provide somethi

Re: [Rd] [R] HTTP User-Agent header

2006-07-28 Thread Robert Gentleman
Prof Brian Ripley wrote: > On Fri, 28 Jul 2006, Robert Gentleman wrote: > >> I wonder if it would not be better to make the user agent string >> something that is configurable (at the time R is built) rather than at >> run time. This would make Seth's patch about 1% as long. Or this could >>

Re: [Rd] [R] HTTP User-Agent header

2006-07-28 Thread Henrik Bengtsson
On 7/28/06, Robert Gentleman <[EMAIL PROTECTED]> wrote: > I wonder if it would not be better to make the user agent string > something that is configurable (at the time R is built) rather than at > run time. This would make Seth's patch about 1% as long. Or this could > be handled as an option. The

Re: [Rd] [R] HTTP User-Agent header

2006-07-28 Thread Prof Brian Ripley
On Fri, 28 Jul 2006, Robert Gentleman wrote: > I wonder if it would not be better to make the user agent string > something that is configurable (at the time R is built) rather than at > run time. This would make Seth's patch about 1% as long. Or this could > be handled as an option. The patche

Re: [Rd] [R] HTTP User-Agent header

2006-07-28 Thread Robert Gentleman
I wonder if it would not be better to make the user agent string something that is configurable (at the time R is built) rather than at run time. This would make Seth's patch about 1% as long. Or this could be handled as an option. The patches are pretty extensive and allow for setting the agen

Re: [Rd] [R] HTTP User-Agent header

2006-07-28 Thread James P. Howard, II
On 7/28/06, Seth Falcon <[EMAIL PROTECTED]> wrote: > I have a rough draft patch, see below, that adds a User-Agent header > to HTTP requests made in R via download.file. If there is interest, I > will polish it. It looks right, but I am running under Windows without a compiler. -- James P. How

Re: [Rd] [R] HTTP User-Agent header

2006-07-28 Thread Seth Falcon
[moved from R-help to R-devel] Prof Brian Ripley <[EMAIL PROTECTED]> writes: > 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. I have a rough draft patch, see below, that adds a User-Agent