title: R - Error when using getURL from curl after site was changed
body: <p>I have been using getURL from curl (in R) to read from <a href="https://fantasy.premierleague.com/drf/bootstrap-static" rel="noreferrer">https://fantasy.premierleague.com/drf/bootstrap-static</a></p>
  
  <p>Example code:
  <code>print(getURL("https://fantasy.premierleague.com/drf/bootstrap-static"))</code></p>
  
  <p>No problem until a few days ago. But now getting the error: </p>
  
  <blockquote>
  <pre><code>Error in function (type, msg, asError = TRUE)  : 
    error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
  </code></pre>
  </blockquote>
  
  <p>Have upgraded to latest R (3.4.0) and curl package: RCurl_1.95-4.8 </p>
  
  <p>I have a workaround (to use GET from httr) but can anyone help me get it working with getURL?</p>
  
  <p>I believe the server change is that they only now support TLS 1.2. I have tried the following to fix but now get a new error. May relate to needing newer OpenSSL?</p>
  
  <pre><code>CURL_SSLVERSION_TLSv1_2 &lt;- 6L
  opt &lt;- RCurl::curlOptions(verbose = TRUE, sslversion = 
  CURL_SSLVERSION_TLSv1_2)
  print( RCurl::getURL("https://fantasy.premierleague.com/drf/bootstrap-static", .opts = opt))
  </code></pre>
  
  <p>New error is:</p>
  
  <blockquote>
  <pre><code>Unsupported SSL protocol version
  </code></pre>
  </blockquote>