I encountered the following problem: 1 script retrieves data from the database, and sends it to another via curl using the POST method, while both scripts contain var_dump, in the script that sends all the data, the bar is dumped, and in the script that receives the array with just writing an array (empty array). Here's what it looks like: 
Above the var dump from the file that sends, from the bottom of the file where this data is sent. Here is the code of the file that sends the data:
ini_set('max_execution_time', '600000'); $link = mysqli_connect('localhost', 'root', 'root', 'shop'); mysqli_query($link, "SET NAMES 'utf8'"); mysqli_query($link, "SET CHARACTER SET 'utf8'"); mysqli_query($link, "SET SESSION collation_connection = 'utf8_general_ci'"); $order = mysqli_fetch_all(mysqli_query($link,"SELECT shipping_firstname AS firstname, shipping_lastname AS lastname, email, telephone, custom_field, shipping_address_1 AS address, shipping_postcode, shipping_city, shipping_method, payment_method, comment FROM oc_order WHERE order_id = 338"), MYSQLI_ASSOC)[0]; $orderProducts = mysqli_fetch_all(mysqli_query($link, "SELECT op.order_id, op.name, op.quantity, op.price, op.total, IF(oo.nomenclature_id IS NOT NULL, oo.nomenclature_id, p.nomenclature_id) AS nomenclature_id, IF(oo.characteristic_id IS NOT NULL, oo.characteristic_id, p.characteristic_id) AS characteristic_id FROM oc_order_product AS op INNER JOIN oc_product AS p ON p.product_id = op.product_id LEFT JOIN oc_order_option AS oo ON op.order_product_id = oo.order_product_id WHERE op.order_id = 338"), MYSQLI_ASSOC); $send = array( 'order' => $order, 'orderProducts' => $orderProducts ); var_dump($send); echo '<br><br>'; $ch = curl_init(); $url = "https://localhost/test/printCheck.php"; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $send); $result = curl_exec($ch); curl_close($ch); echo $result; And here is the code of the file that receives the data:
<?php ini_set('max_execution_time', '600000'); var_dump($_POST); ?> Tell me what the problem is, otherwise I have already broken my whole brain, having shoveled all the documentation on curl)