我试图提出以下请求:
library("RCurl")
getURL("https://api.example.com/resource",
userpwd ="username:password",param="ApplicationID")
但我有这个错误:
The required parameter 'Username' was not found.
有什么想法吗?
答案 0 :(得分:0)
试试这个:
opts = curlOptions(userpwd = "user:swd", param= "AppID")
getURL("url",.opts=opts)