<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.cartegrise.com/default/calculateur/index/ngc/',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => 'isSIV=0&demarche=10&cp=75000&genre=1&energie=1&cv=8&mom_kg=1800&co2=128&marque=ok&dep=75',
  CURLOPT_HTTPHEADER => array(
    'authority: www.cartegrise-cafe.com',
    'pragma: no-cache',
    'cache-control: no-cache',
    'sec-ch-ua: " Not;A Brand";v="99", "Google Chrome";v="97", "Chromium";v="97"',
    'accept: */*',
    'content-type: application/x-www-form-urlencoded; charset=UTF-8',
    'x-requested-with: XMLHttpRequest',
    'sec-ch-ua-mobile: ?0',
    'user-agent: PostmanRuntime/7.29.0',
    'sec-ch-ua-platform: "macOS"',
    'origin: https://www.cartegrise-cafe.com',
    'sec-fetch-site: same-origin',
    'sec-fetch-mode: cors',
    'sec-fetch-dest: empty',
    'referer: https://www.cartegrise-cafe.com/malus-au-poids',
    'accept-language: en-US,en;q=0.9',
  ),
));

$response = curl_exec($curl);

curl_close($curl);

var_dump($response);
