user_agent: Set user agent.

View source: R/user-agent.r

user_agentR Documentation

Set user agent.

Description

Override the default RCurl user agent of NULL

Usage

user_agent(agent)

Arguments

agent

string giving user agent

See Also

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

Examples

## Not run: 
GET("http://httpbin.org/user-agent")
GET("http://httpbin.org/user-agent", user_agent("httr"))

## End(Not run)

httr documentation built on Aug. 15, 2023, 9:08 a.m.