user_agent: Set user agent.

Description Usage Arguments See Also Examples

View source: R/user-agent.r

Description

Override the default RCurl user agent of NULL

Usage

1
user_agent(agent)

Arguments

agent

string giving user agent

See Also

Other config: add_headers, authenticate, config, set_cookies, timeout, use_proxy, verbose

Examples

1
2
GET("http://httpbin.org/user-agent")
GET("http://httpbin.org/user-agent", user_agent("httr"))

r-lib/httr documentation built on Dec. 9, 2018, 11:26 p.m.