Skip to content
Prev 168364 / 398502 Next

RCurl unable to download a particular web page -- what is so special about this web page?

Some Web servers are strict. In this case, it won't accept
a request without being told who is asking, i.e. the User-Agent.

If you use

  getURL("http://www.youtube.com",
           httpheader = c("User-Agent" = "R (2.9.0)")))

you should get the contents of the page as expected.


(Or with URL uk.youtube.com, etc.)


  D.
clair.crossupton at googlemail.com wrote: