Re: [R] Help with Download of a comma separated file in zip format

2014-07-17 Thread Fábio Magalhães
Hi Balaji, Sorry, I forgot to tell that I'm running R on OSX. I don't know if there's an easier way, but since you are running on Windows you could try to install curl(http://curl.haxx.se/) binaries and try the curl method again. #! Fábio On Thu, Jul 17, 2014 at 5:26 AM, Raghuraman Ramachandran

Re: [R] Help with Download of a comma separated file in zip format

2014-07-17 Thread Raghuraman Ramachandran
Many thanks. I will try that. On Thu, Jul 17, 2014 at 1:29 PM, Fábio Magalhães wrote: > Hi Balaji, > > Sorry, I forgot to tell that I'm running R on OSX. I don't know if > there's an easier way, but since you are running on Windows you could > try to install curl(http://curl.haxx.se/) binarie

Re: [R] Help with Download of a comma separated file in zip format

2014-07-17 Thread Raghuraman Ramachandran
Hi Fabio Can you please reproduce your output? When I tried it curl are the following issues I get: >download.file(" http://www.nseindia.com/content/historical/DERIVATIVES/2014/JUL/fo09JUL2014bhav.csv.zip";, temp, method="curl") Error in download.file(" http://www.nseindia.com/content/historical/

Re: [R] Help with Download of a comma separated file in zip format

2014-07-16 Thread Fábio Magalhães
I was able to download it specifying the method as "curl", like this: > download.file("http://www.nseindia.com/content/historical/DERIVATIVES/2014/JUL/fo09JUL2014bhav.csv.zip";, > temp, method="curl") #! Fábio On Tue, Jul 15, 2014 at 3:46 PM, Electron Musketeer wrote: > Many thanks Ista. I wil

Re: [R] Help with Download of a comma separated file in zip format

2014-07-15 Thread Electron Musketeer
Many thanks Ista. I will try other routes as well. Thanks Jeff and sorry for posting without abiding by the rules. Thanks James. I would rather automate this than download manually everytime. That is my intent. Best Balaji On Tue, Jul 15, 2014 at 7:16 PM, Ista Zahn wrote: > Not an R question,

Re: [R] Help with Download of a comma separated file in zip format

2014-07-15 Thread Ista Zahn
Not an R question, but see https://addons.mozilla.org/en-US/firefox/addon/cliget/ for an easy way to see what what is going on under the hood when you download using firefox. For your example I get wget --header='Host: www.nseindia.com' --header='User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:30.0

Re: [R] Help with Download of a comma separated file in zip format

2014-07-15 Thread Jeff Newmiller
Circumventing content protection measures or picky server configurations such as this appears to be tends to involve HTTP protocol details that are off topic here, though someone may tackle your problem anyway and report back. Once you know what your protocol needs are (perhaps with the help of