title: download a csv file using a https request with R
body: <p>I would like to download a csv file using a https request.
  Using a web browser, I can download this <a href="https://indices.euronext.com/nyx_eu_listings/price_chart/download_historical?typefile=csv&amp;layout=vertical&amp;typedate=dmy&amp;separator=point&amp;mic=XPAR&amp;isin=FR0003500008&amp;name=CAC%2040&amp;namefile=Price_Data_Historical&amp;from=0&amp;to=1426550400000&amp;adjusted=1&amp;base=0" rel="nofollow">file</a>.</p>
  
  <p>I would like to do it in R. 
  I did try to use the getURL function from RCurl package without success.</p>
  
  <pre><code>library(RCurl) URL &lt;-
       "https://indices.euronext.com/nyx_eu_listings/price_chart/download_historical?typefile=csv&amp;layout=vertical&amp;typedate=dmy&amp;separator=point&amp;mic=XPAR&amp;isin=FR0003500008&amp;name=CAC%2040&amp;namefile=Price_Data_Historical&amp;from=0&amp;to=1426550400000&amp;adjusted=1&amp;base=0"
  
  csvfile &lt;- getURL(URL)
  </code></pre>
  
  <p>tks for your help</p>