httr (version 0.4)

config: Set curl options.

Description

Generally you should only need to use this function to set CURL options directly if there isn't already a helpful wrapper function, like set_cookies, add_headers or authenticate. To use this function effectively requires some knowledge of CURL, and CURL options. Use httr_options to see a complete list of available options. To see the libcurl documentation for a given option, use curl_docs.

Usage

config(...)

Arguments

...
named Curl options.

Details

Unlike Curl (and RCurl), all configuration options are per request, not per handle.

See Also

set_config to set global config defaults, and with_config to temporarily run code with set options.

Other config: add_headers; authenticate; set_cookies; timeout; use_proxy; user_agent; verbose

Other ways to set configuration: reset_config, set_config; with_config, with_verbose