Skip to Content

RCurl- Failure when receiving data from the peer

Im hoping someone can help me with this. I have been using R for a bit and have been looking at getting some nice data sets. I have found a nice sports site I would like to play with the data from. I have tried the following code but cant seem to get any joy:

library(RCurl)
library(XML)
URL<-'http://info.nowgoal.com/en/League.aspx?SclassID=36&MatchSeason=2011-2012'
hdata<-getURL(URL)
fdata<-htmlParse(hdata,asText=T)
 
> hdata<-getURL(URL)
Error in function (type, msg, asError = TRUE)  : 
  Failure when receiving data from the peer
 
hdata<-getURL(URL,httpheader = c("User-Agent" = "R (2.15.0)"))
 
ua<-'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1'
hdata<-getURL(URL,httpheader = c("User-Agent" = ua))
Error in function (type, msg, asError = TRUE)  : 
  Failure when receiving data from the peer

At the moment I cant get past this but I am interested in maybe using readHTMLTable to get table id="Table1" from the site.