Override the default RCurl user agent of NULL
user_agent(agent)
| agent | string giving user agent |
|---|
Other config: add_headers,
authenticate, config,
set_cookies, timeout,
use_proxy, verbose
GET("http://httpbin.org/user-agent")#> Response [http://httpbin.org/user-agent] #> Date: 2020-03-11 04:10 #> Status: 200 #> Content-Type: application/json #> Size: 59 B #> { #> "user-agent": "libcurl/7.58.0 r-curl/4.3 httr/1.4.1" #> }#> Response [http://httpbin.org/user-agent] #> Date: 2020-03-11 04:10 #> Status: 200 #> Content-Type: application/json #> Size: 27 B #> { #> "user-agent": "httr" #> }