尝试通过以下方式发布表单时出现此证书验证错误RCurl::postForm()
:
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
还不太熟悉 POST 表单,谁能告诉我我做错了什么?
产生错误的示例
我查看了http://goo.gl/qOf5t的源代码并确定了列出的第一个航班的 POST 形式(截至 2013 年 4 月 9 日,这是 FFM - NY 为 437,97 欧元):
<form data-carrier='["AF"]' method="post" target="_blank" action=
"https://www.fluege.de/flight/itinerary/sFlightInput/bd253d844ad40c38e2334930a849da76/SAB"
class="clearfix itinForm">
<input type="hidden" name="key" value="2" /> <input type="hidden" name="recom"
value="2" /> <input type="hidden" name="type" value="SAB" />
<div class="relative clearfix">
<div class="Pricebox PriceboxWO">
<div class="spiffy spiffytop schemeh1">
<div class="spiffy1">
</div>
<div class="spiffy2">
</div>
<div class="spiffy3">
</div>
<div class="spiffy4">
</div>
</div>
<div class="PriceItin floatfix">
<div class="fll">
Preis p. P. :
</div>
</div>
</div>
</div>
</form>
然后我解雇了这个:
require("RCurl")
x <- RCurl::postForm(
uri="https://www.fluege.de/flight/itinerary/sFlightInput/bd253d844ad40c38e2334930a849da76/SAB",
.params=list(
key=160,
recom=160,
type="SAB"
),
style="POST"
)