i am trying to get and post a form from this https site .
user name of the form (RamiLevi), and there is no password. once i get the form i can post it with rvest and get to the html i actually need.
GET("https://url.retail.publishedprices.co.il/login")
Error in function (type, msg, asError = TRUE) :
SSL certificate problem: unable to get local issuer certificate
attempt with ssl.verifypeer=F
GET("https://url.retail.publishedprices.co.il/login",.opts = list(ssl.verifypeer = FALSE))
Error in function (type, msg, asError = TRUE) :
SSL certificate problem: unable to get local issuer certificate
attempt with needed user name of the form (RamiLevi), and there is no password
GET("https://url.retail.publishedprices.co.il/login",
.opts = list(ssl.verifypeer = FALSE,userpwd="RamiLevi:"))
Error in function (type, msg, asError = TRUE) :
SSL certificate problem: unable to get local issuer certificate
Usually, the easiest thing to do is switch from
RCurl::GET()
tohttr::GET()
, which will handle the SSL automatically. Alternatively you can specify acacert.pem
file in your RCurl call (e.g., with argumentcainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl")
). That for some reason doesn't work here.One thing you can do is avoid SSL, which will work for you but that may not be a good idea for other (security) reasons: