【发布时间】:2013-03-28 16:25:45
【问题描述】:
我已经使用了一个月左右,我真的很喜欢它。在使用 RCurl/XML/JSON 包时,我现在有点挣扎。
我有两个不同的问题:
1- Web 服务在特定 url 发布并接受以下 HTML 查询:
<Object_Request>
<id>1253</id>
</Object_Request>
如何在我的请求中嵌入 ID 号?我应该使用 getURL() 还是 postForm() ?
2- 我的另一个测试是使用 Amara API(这里:http://amara.readthedocs.org/en/latest/api.html)
我尝试使用 postForm():
postForm(url,.params=c("X-api-username:"=my_user_id,
"X-apikey:"=my_code))
我收到以下错误消息:
Error in function (type, msg, asError = TRUE) :
SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
getURL 也一样:
getURL(url,httpheader=c("X-api-username:"=my_user_id,
"X-apikey:"=my_code) )
非常感谢任何帮助。
【问题讨论】:
-
我遇到了同样的问题。我一直在尝试在 R bemasher.net/archives/1002 中重新创建以下内容。除了发布到表单之外,我什么都能做。