- file_get_contents: documentation ( source)
- stream_context_create: documentation ( source)
<?php
//Enter your code here, enjoy!
$opts = array(
'http'=>array(
'method'=>"GET",
'header'=>"HTTP_ACCEPT: text/csv"
)
);
$context = stream_context_create($opts);
// Open the file using the HTTP headers set above
$file = file_get_contents('https://tassidicambio.bancaditalia.it/terzevalute-wf-web/rest/v1.0/dailyRates?referenceDate=2017-11-29¤cyIsoCode=EUR&lang=it', false, $context);