curlOptions(...,。opts = .opts)出错:未命名的卷曲选项:

时间:2017-11-09 10:46:17

标签: r rcurl

当我使用以下命令时     curlPerform(url =“Intranet URL Here”,getURL(“Intranet URL Here”,userpwd =“USERID:PASSWORD”,cainfo = system.file(“CurlSSL”,“cacert.pem”,package =“RCurl”)),     httpheader = headerfields,postfields = body,writefunction = reader $ update)

我收到如下所述的错误消息。

curlOptions(...,。opts = .opts)出错:未命名的curl选项:HTTP / 1.1 404 Not Found

找不到网页

找不到网页

请您就此错误向我提出建议。提前谢谢。

1 个答案:

答案 0 :(得分:0)

我使用了curl,如下所示

reader = basicTextGatherer() curl = getCurlHandle()

选项(RCurlOptions = list(cainfo = system.file(" CurlSSL"," cacert.pem",package =" RCurl"),followlocation = TRUE ,httpheader = c(接受=" text / xml",接受=" multipart / *",'内容类型' =" text / xml ; charset = utf-8",SOAPAction =" INTRANET URL"),userpwd =" USERID:PASSWORD",netrc = TRUE,timeout = 100,po​​stfields = SOAP DETAILS,writefunction = reader $ update,verbose = TRUE,curl = curl))

响应< - getURL(" INTRANET网址",curl = curl)