// Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://xxxxx.ru/xxx');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "detailNum=9091901164&loadingGroupId=&locationId=24732&deliveryType=&isFirstLoading=false&sessionId=e8f0eaa4-f75f-4285-bd93-0577bc9924e3&latitude=55.0128&longitude=82.9408&geoCoordsType=Location&__Version=1.9.0.2&__RequestVerificationToken=u2uPi63bnyZQWoJSMKI3qD6bZZEr8J3zxFE4I81MhkCnCjkc7iVp4rx8p65eDSAvrbYu4jP7Uc2YTOQPnaOlaROdBigNs9jc3u12bXzgLJO5Gd3C8DbzJhulscYrb4qE14akNHXSUvzOkeV72z4Nzw2&packetId=-1");
curl_setopt($ch, CURLOPT_POST, 1);
$headers = array();
$headers[] = 'Accept: */*';
$headers[] = 'Accept-Encoding: gzip, deflate, br';
$headers[] = 'Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3';
$headers[] = 'Cache-Control: no-cache';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Content-Length: 402';
$headers[] = 'Content-Type: application/x-www-form-urlencoded';
$headers[] = 'Cookie: current-region-long-lat=%257B%2522Id%2522%253A1518%252C%2522Name%2522%253A%2522%25D0%259D%25D0%25BE%25D0%25B2%25D0%25BE%25D1%2581%25D0%25B8%25D0%25B1%25D0%25B8%25D1%2580%25D1%2581%25D0%25BA%2522%252C%2522EmexName%2522%253A%2522%25D0%259D%25D0%25BE%25D0%25B2%25D0%25BE%25D1%2581%25D0%25B8%25D0%25B1%25D0%25B8%25D1%2580%25D1%2581%25D0%25BA%2522%252C%2522Longitude%2522%253A82.92043%252C%2522Latitude%2522%253A55.030199%252C%2522AreaId%2522%253A2127%252C%2522AreaName%2522%253A%2522%25D0%259D%25D0%25BE%25D0%25B2%25D0%25BE%25D1%2581%25D0%25B8%25D0%25B1%25D0%25B8%25D1%2580%25D1%2581%25D0%25BA%25D0%25B0%25D1%258F%2520%25D0%25BE%25D0%25B1%25D0%25BB%25D0%25B0%25D1%2581%25D1%2582%25D1%258C%2522%252C%2522CountryId%2522%253A3%252C%2522CountryName%2522%253A%2522%25D0%25A0%25D0%25BE%25D1%2581%25D1%2581%25D0%25B8%25D1%258F%2522%257D; best-location=9129; current-location=24732; __RequestVerificationToken=-L-u6zozq7CHXAfsSuxpETbR3-L9QFS9Au4ekdstXNo1H_zVNtK8SICMvNLawsEnKxhONZEL0jV9r5h8LQzRDcyZ3wKiz0ypPcXt17dxGRxUJg4BohliZPG2acGwqBUReWPW7NDvM5ZoiWxoPgqs4g2; NSC_xxx.fnfy.sv=ffffffffc3a07a6345525d5f4f58455e445a4a423652; _ym_uid=1561881082464230690; _ym_d=1561881082; _ym_isad=2; _ym_visorc_18880285=w; _ga=GA1.2.401420290.1561881083; _gid=GA1.2.1767642029.1561881083; isBestLocationDetected=true; current-position=%257B%2522X%2522%253A%252282.9408%2522%252C%2522Y%2522%253A%252255.0128%2522%252C%2522type%2522%253A%2522Location%2522%252C%2522source%2522%253A%2522CurrentLocation%2522%252C%2522fixed%2522%253Afalse%257D; _gat=1; _gat_physTracker=1,current-region-long-lat=%257B%2522Id%2522%253A1518%252C%2522Name%2522%253A%2522%25D0%259D%25D0%25BE%25D0%25B2%25D0%25BE%25D1%2581%25D0%25B8%25D0%25B1%25D0%25B8%25D1%2580%25D1%2581%25D0%25BA%2522%252C%2522EmexName%2522%253A%2522%25D0%259D%25D0%25BE%25D0%25B2%25D0%25BE%25D1%2581%25D0%25B8%25D0%25B1%25D0%25B8%25D1%2580%25D1%2581%25D0%25BA%2522%252C%2522Longitude%2522%253A82.92043%252C%2522Latitude%2522%253A55.030199%252C%2522AreaId%2522%253A2127%252C%2522AreaName%2522%253A%2522%25D0%259D%25D0%25BE%25D0%25B2%25D0%25BE%25D1%2581%25D0%25B8%25D0%25B1%25D0%25B8%25D1%2580%25D1%2581%25D0%25BA%25D0%25B0%25D1%258F%2520%25D0%25BE%25D0%25B1%25D0%25BB%25D0%25B0%25D1%2581%25D1%2582%25D1%258C%2522%252C%2522CountryId%2522%253A3%252C%2522CountryName%2522%253A%2522%25D0%25A0%25D0%25BE%25D1%2581%25D1%2581%25D0%25B8%25D1%258F%2522%257D; best-location=9129; current-location=24732; __RequestVerificationToken=-L-u6zozq7CHXAfsSuxpETbR3-L9QFS9Au4ekdstXNo1H_zVNtK8SICMvNLawsEnKxhONZEL0jV9r5h8LQzRDcyZ3wKiz0ypPcXt17dxGRxUJg4BohliZPG2acGwqBUReWPW7NDvM5ZoiWxoPgqs4g2; NSC_xxx.fnfy.sv=ffffffffc3a07a6345525d5f4f58455e445a4a423652; _ym_uid=1561881082464230690; _ym_d=1561881082; _ym_isad=2; _ym_visorc_18880285=w; _ga=GA1.2.401420290.1561881083; _gid=GA1.2.1767642029.1561881083; isBestLocationDetected=true; current-position=%257B%2522X%2522%253A%252282.9408%2522%252C%2522Y%2522%253A%252255.0128%2522%252C%2522type%2522%253A%2522Location%2522%252C%2522source%2522%253A%2522CurrentLocation%2522%252C%2522fixed%2522%253Afalse%257D; _gat=1; _gat_physTracker=1; current-region-long-lat=%7b%22Id%22%3a1518%2c%22Name%22%3a%22%d0%9d%d0%be%d0%b2%d0%be%d1%81%d0%b8%d0%b1%d0%b8%d1%80%d1%81%d0%ba%22%2c%22EmexName%22%3a%22%d0%9d%d0%be%d0%b2%d0%be%d1%81%d0%b8%d0%b1%d0%b8%d1%80%d1%81%d0%ba%22%2c%22Longitude%22%3a82.920430%2c%22Latitude%22%3a55.030199%2c%22AreaId%22%3a2127%2c%22AreaName%22%3a%22%d0%9d%d0%be%d0%b2%d0%be%d1%81%d0%b8%d0%b1%d0%b8%d1%80%d1%81%d0%ba%d0%b0%d1%8f+%d0%be%d0%b1%d0%bb%d0%b0%d1%81%d1%82%d1%8c%22%2c%22CountryId%22%3a3%2c%22CountryName%22%3a%22%d0%a0%d0%be%d1%81%d1%81%d0%b8%d1%8f%22%7d; best-location=9129; current-location=9129; __RequestVerificationToken=efWU7upM9OIZJy_CysRzDqI4vE8Wu5s6niost8hyNj_HS6SIrOm3pANufATbRF5lctlq_APKtwVTxYEqf9uHtfgBLq_dgsSZHjI8yqA46_iK4bypVNlA-SX6oCrydcknfA6_t_QpwOgwXPFg9KNxLg2';
$headers[] = 'Host: xxxx.ru';
$headers[] = 'Pragma: no-cache';
$headers[] = 'Referer: https://xxxx.ru/f?detailNum=9091901164&packet=-1';
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0';
$headers[] = 'X-Requested-With: XMLHttpRequest';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close($ch);
Так попробуйте. Взято
отсюда. :)