cf_curl_opts: Store curl options for use within 'clifro'

View source: R/cfUser.R

cf_curl_optsR Documentation

Store curl options for use within clifro

Description

The cf_curl_opts function stores specific curl options that are used for all the clifro queries.

Usage

cf_curl_opts(..., .opts = list())

Arguments

...

a name-value pairs that are passed to RCurl curlOptions

.opts

a named list or CURLOptions object that are passed to RCurl curlOptions

Examples

## Not run: 
# Specify options for use in all the curl handles created in clifro
cf_curl_opts(.opts = list(proxy = "http://xxxxx.yyyy.govt.nz:8080",
                          proxyusername  = "uid",
                          proxypassword  = "pwd",
                          ssl.verifypeer = FALSE))
# Or alternatively:
cf_curl_opts(proxy = "http://xxxxx.yyyy.govt.nz:8080",
             proxyusername  = "uid",
             proxypassword  = "pwd",
             ssl.verifypeer = FALSE)

## End(Not run)

ropensci/clifro documentation built on March 17, 2023, 12:17 a.m.