Our server is reaching out to highcharts via php curl_exec to URL: https://export.highcharts.com/?async=tr ... 0&options=...
Followed by the JSON for the chart. If I paste and test the JSON in https://export.highcharts.com/ it works.
The result I am getting via curl is "error code: 1006". This code was working before Dec 12th.
Specific php snippit:
Code: Select all
$DataEncoded = json_encode($chartArray);
$dataString = ('async=true&type=image/png&height=300&options=' . $DataEncoded);
$url = 'https://export.highcharts.com/?';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $dataString);
curl_setopt($ch, CURLOPT_POST, 1);
$headers = array();
$headers[] = "Accept: application/json";
$headers[] = "Content-Type: application/x-www-form-urlencoded";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
curl_close($ch);