【发布时间】:2014-06-06 11:45:28
【问题描述】:
我正在尝试将以下 curl 命令转换为 Rcurl,但在使用 RCURL 使用文件发布数据时遇到问题
curl –X POST –d @out2 http://211.211.211.211:27844/ssentsvc -- header 'SOAPAction: "http://google.com"' --header 'Content-Type: text/xml'
以上命令有效
我正在 RCURL 中尝试以下内容,关于如何在 R curl 中合并 -d 选项以通过数据文件(xml 文件)发布的任何想法??
postForm('http://211.211.211.211:27844/ssentsvc' ,style='HTTPPOST',.opts=list(httpheader=c('SOAPAction'='"http://google.com"', 'Content-Type'='text/xml'),postfields=out2))
我尝试了快速谷歌搜索,但找不到任何相关内容。请告知或指导mew相关指针。
【问题讨论】: