Learn R Programming

crul (version 0.2.0)

curl-options: curl options

Description

curl options

Arguments

Examples

Run this code
# set curl options on client initialization
(res <- HttpClient$new(
  url = "https://httpbin.org",
  opts = list(
    verbose = TRUE,
    useragent = "hello world"
  )
))
res$opts
res$get('get')

# or set curl options when performing HTTP operation
(res <- HttpClient$new(url = "https://httpbin.org"))
res$get('get', verbose = TRUE)
## Not run: res$get('get', stuff = "things")
## Not run: res$get('get', httpget = TRUE)

Run the code above in your browser using DataLab