cookie: Acquire a cookie if necessary

View source: R/cookie.R

cookieR Documentation

Description

Acquire a cookie if necessary

Usage

cookie(
  url,
  init_url = NULL,
  post = NULL,
  payload = NULL,
  init_post = NULL,
  init_payload = NULL,
  curl_verbose = FALSE
)

Arguments

url

Character. URL to download to get the cookie.

init_url

Character. An initial URL to download to get the cookie, before downloading “url“ with the cookie.

post

List: HTTP POST parameters.

payload

Data to send as payload.

init_post

List: HTTP POST parameters for “init_url“.

init_payload

Data to send as payload with “init_url“.

curl_verbose

Logical. Perform CURL requests in verbose mode for debugging purposes.

Value

A list with cache file path, cookies and response headers.


saezlab/OmnipathR documentation built on Oct. 16, 2024, 11:49 a.m.