[R] wget parameters

[Ricardo Rodriguez] Your XEN ICT Team webmaster at xen.net
Sun Aug 9 23:37:42 CEST 2009


Please, accept my apologies for keeping posting in HTML format! Solved!

Greetings,

Ricardo

[Ricardo Rodriguez] Your XEN ICT Team wrote:
> Hi,
> 
> Following an example I've received from Phil Spector, I am trying to get 
> a remote file by using download file.
> 
> The concerned remote server doesn't username and password passed with 
> the URL, thus this line fails...
> 
> download.file('http://username:password@xepecnet.environmentalchange.net/xwiki/bin/view/ICT/RGraphicSample02','RG02',method='wget')
> 
> I can get a free access file without any problem
> 
> download.file('http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/RGraphicSample01?xpage=plain','RG01',method='wget')
> 
> But, of course, access to a protected one fails...
> 
> download.file('http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/RGraphicSample02?xpage=plain','RG02',method='wget')
> 
> *Wget does the trick *when executed from the comman line with the 
> following parameters...
> 
> wget --http-user=DummyDummy --http-password=dummy --auth-no-challenge 
> http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/RGraphicSample02?xpage=plain
> 
> 
> 
> Please, is it possible to pass these parameters to the method wget in 
> download.file?
> 
> Thank you for your help,
> 
> Ricardo
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Ricardo Rodríguez
Your XEN ICT Team




More information about the R-help mailing list