написал запрос в postman, там есть кнопка скопировать в curl
curl -X POST \
https://xxxxx.ru/xxx \
-H 'Accept: */*' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Length: 402' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H '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' \
-H 'Host: xxxx.ru' \
-H 'Pragma: no-cache' \
-H 'Referer: https://xxxx.ru/f?detailNum=9091901164&packet=-1' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0' \
-H 'X-Requested-With: XMLHttpRequest' \
-d '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'
копирую его в php
<?php
$headers = [
'Accept: */*',
'Accept-Encoding: gzip, deflate, br',
'Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3',
'Cache-Control: no-cache',
'Connection: keep-alive',
'Content-Length : 402',
'Content-Type: application/x-www-form-urlencoded',
'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',
'Host: xxxx.ru',
'Postman-Token: 89868758-822d-42ee-aad5-dae7e93ea7c7,56a89397-03f7-43c1-b7bb-cce4e0b9f8f7',
'Pragma: no-cache',
'Referer: https://xxxx.ru/f?detailNum=9091901164&packet=-1',
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0',
'X-Requested-With: XMLHttpRequest',
'cache-control: no-cache'
];
$body = iconv("windows-1251", "utf-8", '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');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://xxx.ru/FindByDetailNum');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
// загрузка URL и ее выдача в браузер
$out = curl_exec($ch);
var_dump($out);
// закрытие ресурса cURL и освобождение системных ресурсов
curl_close($ch);
?>
получаю false