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

-- 
Ricardo Rodríguez
Your XEN ICT Team


	[[alternative HTML version deleted]]


