Set (and reset) global httr configuration.
Arguments
- config
Settings as generated by
add_headers(),set_cookies()orauthenticate().- override
if
TRUE, ignore existing settings, ifFALSE, combine new config with old.
See also
Other ways to set configuration:
config(),
with_config()
Examples
GET("http://google.com")
#> Response [http://www.google.com/]
#> Date: 2026-09-28 15:34
#> Status: 200
#> Content-Type: text/html; charset=ISO-8859-1
#> Size: 84.5 kB
#> <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="...
#> var h=this||self;var k=/#|$/;function l(a,c){var d=a.search(k);a:{var b=0;for...
#> function t(a,c,d,b,f){var e="";c.search("&ei=")===-1&&(e="&ei="+p(b),c.search...
#> document.documentElement.addEventListener("submit",function(b){var a;if(a=b.t...
#> try{
#> _._F_toggles_initialize=function(a){(typeof globalThis!=="undefined"?globalTh...
#> /*
#>
#> Copyright The Closure Library Authors.
#> SPDX-License-Identifier: Apache-2.0
#> ...
set_config(verbose())
GET("http://google.com")
#> Response [http://www.google.com/]
#> Date: 2026-09-28 15:34
#> Status: 200
#> Content-Type: text/html; charset=ISO-8859-1
#> Size: 84.5 kB
#> <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="...
#> var h=this||self;var k=/#|$/;function l(a,c){var d=a.search(k);a:{var b=0;for...
#> function t(a,c,d,b,f){var e="";c.search("&ei=")===-1&&(e="&ei="+p(b),c.search...
#> document.documentElement.addEventListener("submit",function(b){var a;if(a=b.t...
#> try{
#> _._F_toggles_initialize=function(a){(typeof globalThis!=="undefined"?globalTh...
#> /*
#>
#> Copyright The Closure Library Authors.
#> SPDX-License-Identifier: Apache-2.0
#> ...
reset_config()
GET("http://google.com")
#> Response [http://www.google.com/]
#> Date: 2026-09-28 15:34
#> Status: 200
#> Content-Type: text/html; charset=ISO-8859-1
#> Size: 84.5 kB
#> <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="...
#> var h=this||self;var k=/#|$/;function l(a,c){var d=a.search(k);a:{var b=0;for...
#> function t(a,c,d,b,f){var e="";c.search("&ei=")===-1&&(e="&ei="+p(b),c.search...
#> document.documentElement.addEventListener("submit",function(b){var a;if(a=b.t...
#> try{
#> _._F_toggles_initialize=function(a){(typeof globalThis!=="undefined"?globalTh...
#> /*
#>
#> Copyright The Closure Library Authors.
#> SPDX-License-Identifier: Apache-2.0
#> ...