I am trying to web scrape the information from a database using the httr
package in R. Every time I try to connect to it to get the HTML content I get the following error.
url <- "https://metalpdb.cerm.unifi.it"
query <- httr::GET(url)
Error in curl::curl_fetch_memory(url, handle = handle) :
schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) - This error usually occurs when a fatal SSL/TLS alert is received (e.g. handshake failed).
What could be the problem here? It seems to be related to this specific website. I am by no means an expert when it comes to this and have never tried to web scrape something before. I have never encountered an error like this when using httr::GET
.
Help would be highly appreciated!
> sessionInfo()
R version 4.1.3 (2022-03-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043)
Matrix products: default
locale:
[1] LC_COLLATE=English_Switzerland.1252 LC_CTYPE=English_Switzerland.1252
[3] LC_MONETARY=English_Switzerland.1252 LC_NUMERIC=C
[5] LC_TIME=English_Switzerland.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] httr_1.4.2
loaded via a namespace (and not attached):
[1] compiler_4.1.3 R6_2.5.1 tools_4.1.3 curl_4.3.2