1
我有一個工作文件捲曲的要求,主要內容如下:如何new_handle通過用戶名和密碼在捲曲[R
curl -XGET "https://xxxx.com/xxx" -u "username:password"
我想怎麼用curl
包中的R
我有下面的代碼,
library(curl) clCall <- new_handle(url = 'https://xxxx.com/xxx') handle_setopt(clCall, customrequest = "XGET")
現在我不知道如何通過用戶名和密碼在這種捲曲請求
你嘗試過這個 clCall < - new_handle(URL = 'https://xxxx.com/xxx', userpwd ='user:password') – eclark
沒有工作,我試過userpwd,而用戶 –
它拋出了什麼錯誤?你有沒有嘗試使用'RCurl'包來代替'curl'? – eclark