Re: [R] passing username and password to source()

2008-02-16 Thread [Ricardo Rodriguez] Your XEN ICT Team
Phil Spector wrote: Ricardo - If you use cat to look at the variable request in the getauth function that I sent you previously, you'll see exactly what I'm saying to the server. It's something like this: GET /myfile.txt HTTP/1.1 Host: mycomputer.com Authorization: Basic

Re: [R] passing username and password to source()

2008-02-14 Thread [Ricardo Rodriguez] Your XEN ICT Team
Phil Spector wrote: Ricardo - The authentication can't be done through environmental variables -- the only way is to send an Authorization header. I believe the environmental variables that Dieter is thinking of are the ones that are created on the server side based on the headers that

Re: [R] passing username and password to source()

2008-02-13 Thread Dieter Menne
[Ricardo Rodriguez] Your XEN ICT Team webmaster at xen.net writes: Please, is it possible to pass an username and a password to source() to access code stored in restricted access web server? I know I can use commands like...

Re: [R] passing username and password to source()

2008-02-13 Thread [Ricardo Rodriguez] Your XEN ICT Team
Dieter Menne wrote: One way to handle this is to use Sys.setenv/Sys.getenv to pass parameters by environment. Make sure, however, that this does not violate security, because these parameter could be read by other programs. A quick workaround would be that the receiving program immediately

Re: [R] passing username and password to source()

2008-02-13 Thread Dieter Menne
[Ricardo Rodriguez] Your XEN ICT Team webmaster at xen.net writes: But considering I am just newbie, could you point me to any example to get this working? Thanks! I was thinking of something like this (note: you must store PassEnv2.r on disk as a file). # File PassEnv.r

Re: [R] passing username and password to source()

2008-02-12 Thread [Ricardo Rodriguez] Your XEN ICT Team
Peter McMahan wrote: try something like this: username - abc pass - 123 source(paste(http://,username,:,pass,@mire.environmentalchange.net/~webmaster/R/3Dsurface.r,sep=;)) I'm not sure it'll work but it's worth a try. Thanks, Peter. It didn't work. I am guessing it depends

Re: [R] passing username and password to source()

2008-02-12 Thread Richard Rowe
[Ricardo Rodriguez] Your XEN ICT Team wrote: Peter McMahan wrote: try something like this: username - abc pass - 123 source(paste(http://,username,:,pass,@mire.environmentalchange.net/~webmaster/R/3Dsurface.r,sep=;)) I'm not sure it'll work but it's worth a try.

[R] passing username and password to source()

2008-02-12 Thread [Ricardo Rodriguez] Your XEN ICT Team
Please, is it possible to pass an username and a password to source() to access code stored in restricted access web server? I know I can use commands like... source(http://mire.environmentalchange.net/~webmaster/R/3Dsurface.r;) but I am not able to find if it is possible to pass