authenticate

0th

Percentile

Use http authentication.

It's not obvious how to turn authentication off after using it, so I recommend using custom handles with authentication.

Usage
authenticate(user, password, type = "any")
Arguments
user
user name
password
password
type
type of HTTP authentication. Should be one of the following types supported by Curl: basic, digest, digest_ie, gssnegotiate, ntlm, ntlm_vn, any. It defaults to any.
See Also

Other config: accept_json, accept_xml, add_headers, config, set_cookies, timeout, use_proxy, user_agent, verbose

Aliases
  • authenticate
Examples
GET("http://httpbin.org/basic-auth/user/passwd")
GET("http://httpbin.org/basic-auth/user/passwd",
  authenticate("user", "passwd"))
Documentation reproduced from package httr, version 0.1.1, License: MIT

Community examples

Looks like there are no examples yet.