[R] File Downloading Problem

Santosh Srinivas santosh.srinivas at gmail.com
Mon Nov 1 14:22:44 CET 2010


Dear Group,

My code stopped working ... used to work till last week!

sURL <-
"http://www.nseindia.com/content/historical/EQUITIES/2010/NOV/cm01NOV2010bha
v.csv.zip"

> download.file(sURL,"test.zip")
trying URL
'http://www.nseindia.com/content/historical/EQUITIES/2010/NOV/cm01NOV2010bha
v.csv.zip'
Error in download.file(sURL, "test.zip") : 
  cannot open URL
'http://www.nseindia.com/content/historical/EQUITIES/2010/NOV/cm01NOV2010bha
v.csv.zip'
In addition: Warning message:
In download.file(sURL, "test.zip") :
  cannot open: HTTP status was '403 Forbidden'

I put the same URL in  a browser and it works just fine.

Any idea why?

Thanks,
S



More information about the R-help mailing list