How do I use cookies with RCurl?

前端 未结 2 1261
一生所求
一生所求 2020-12-01 01:32

I am trying to write an R package that accesses some data via a REST API. The API, however, doesn\'t use http authentication, but rather relies on cookies to keep credential

2条回答
  •  有刺的猬
    2020-12-01 02:16

    My bad. Neal Richter pointed out to me http://www.omegahat.org/RCurl/RCurlJSS.pdf - which better explains the difference between cookiefile and cookiejar. The sample script in the question actually does work. But it only writes the file to disk when it is no longer being used.

提交回复
热议问题