RCurl: HTTP Authentication When Site Responds With HTTP 401 Code Without WWW-Authenticate

后端 未结 2 1965
清酒与你
清酒与你 2020-12-16 14:51

I\'m implementing an R wrapper around PiCloud\'s REST API using the RCurl package to make HTTP(S) requests to the API server. The API uses Basic HTTP authentication to verif

2条回答
  •  独厮守ぢ
    2020-12-16 15:00

    The equivalent code in httr is:

    library(httr)
    GET("https://api.picloud.com/job/?jids=12", authenticate("key", "secret"))
    

提交回复
热议问题