Use http authentication.
It's not obvious how to turn authentication off after using it, so I recommend using custom handles with authentication.
authenticate(user, password, type = "any")
- user name
- 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.
GET("http://httpbin.org/basic-auth/user/passwd") GET("http://httpbin.org/basic-auth/user/passwd", authenticate("user", "passwd"))
Looks like there are no examples yet.