search for: cookiefil

Displaying 6 results from an estimated 6 matches for "cookiefil".

Did you mean: cookiefile
2010 Nov 14
1
RCurl and cookies in POST requests
Hello. I know that it's usually possible to write cookies to a cookie file by removing the curl handle and doing a gc() call. I can do this with getURL(), but I just can't obtain the same results with postForm(). If I use: curlHandle <- getCurlHandle(cookiefile=FILE, cookiejar=FILE) and then do: getURL(http://example.com/script.cgi, curl=curlHandle) rm(curlHandle) gc() it's OK, the cookie is there. But, if I do (same handle; the parameter is a dummy): postForm(site, .params=list(par="cookie"), curl=curlHandle, style="POST")...
2013 May 08
1
Dependencies of Imports not attached?
Encountered an error in scripting, which can be reproduced using Rscript as follows: $ Rscript -e "library(httr); handle('http://cran.r-project.org')" Error in getCurlHandle(cookiefile = cookie_path, .defaults = list()) : could not find function "getClass" Calls: handle -> getCurlHandle or by starting R without the methods package attached: $ R_DEFAULT_PACKAGES=base R [snip] > library(httr) > handle('http://cran.fhcrc.org/') Error in getCurlHandle(...
2012 Sep 19
1
scraping with session cookies
...c.gc.ca/graph/graph_e.html?mode=text&stn=05ND012&prm1=3&syr=2012&smo=09&sday=15&eyr=2012&emo=09&eday=18" postForm(site, disclaimer_action="I Agree") cf <- "cookies.txt" no_cookie <- function() { curlHandle <- getCurlHandle(cookiefile=cf, cookiejar=cf) getURL(site, curl=curlHandle) rm(curlHandle) gc() } if ( file.exists(cf) == TRUE ) { file.create(cf) no_cookie() } allTables <- readHTMLTable(site) allTables [[alternative HTML version deleted]]
2012 Jun 07
1
How to set cookies in RCurl
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) library(XML) url <- "http://www.theurl.com" content <- readHTMLTable(url) content
2012 Feb 09
0
google login via RCurl
...sed on code from http://www.stanford.edu/~knoepfle/cgi-bin/flatpress/?x=entry:entry101220-023915 When I try this, I get back a page saying `Your browser's cookie functionality is turned off. Please turn it on' (both on windoze and linux). I find that the cookie file specified in curlSetOpt(cookiefile=) does not always get created but curlSetOpt(verbose=TRUE) shows lines such as * Added cookie GAPS=xxx for domain www.google.com, path /accounts, expire 1391784478 < Set-Cookie: GAPS=xxx;Path=/accounts;Expires=Fri, 07-Feb-2014 14:47:58 GMT;Secure;HttpOnly I am behind a firewall but the verbos...
2009 Sep 17
1
RCurl and Google Scholar's EndNote references
Hi! I've performed a Google Scholar Search using a query, let's say "Frank Harrell", and parsed the links to the EndNote references from the resulting HTML code. Now I'd like to download all the references automatically. For this, I have tried to use RCurl, but I can't seem to get it working: I always get error code "403 Forbidden" from the web server.