Re: [R] How to set cookies in RCurl

2012-06-21 Thread mdvaan
Hi, I am using prof. Temple Lang's suggestions and I think I should be close but with the code below I get an error message which I don't fully get. Any suggestions? Thanks! Math library(RCurl) library(XML) setwd("C:/Comments") url <- getURLContent("http://www.scopus.com/results/results.url?sor

Re: [R] How to set cookies in RCurl

2012-06-07 Thread mdvaan
Thanks for the fast response. I am not sure how to enter the proxy info in the call. I am working via EZProxy (which I think, rewrites a URL). According to their website it does this: 1. Within the config.txt/ezproxy.cfg file, various hosts are identified that require access from a local IP add

Re: [R] How to set cookies in RCurl

2012-06-07 Thread Duncan Temple Lang
Apologies for following up on my own mail, but I forgot to explicitly mention that you will need to specify the appropriate proxy information in the call to getURLContent(). D. On 6/7/12 8:31 AM, Duncan Temple Lang wrote: > To just enable cookies and their management, use the cookiefile > optio

Re: [R] How to set cookies in RCurl

2012-06-07 Thread Duncan Temple Lang
To just enable cookies and their management, use the cookiefile option, e.g. txt = getURLContent(url, cookiefile = "") Then you can pass this to readHTMLTable(), best done as content = readHTMLTable(htmlParse(txt, asText = TRUE)) The function readHTMLTable() doesn't use RCurl and doesn't

[R] How to set cookies in RCurl

2012-06-07 Thread mdvaan
Hi, I am trying to access a website and read its content. The website is a restricted access website that I access through a proxy server (which therefore requires me to enable cookies). I have problems in allowing Rcurl to receive and send cookies. The following lines give me: library(RCurl) l