'; print_r($_COOKIE); echo ''; // If the ?u query parameter is present, generate the cURL command if (!empty($targetUrl)) { $curlCommand = 'curl -X GET "' . $targetUrl . '" \\' . PHP_EOL; foreach ($_COOKIE as $cookieName => $cookieValue) { $curlCommand .= '--cookie "' . $cookieName . '=' . addslashes($cookieValue) . '" \\' . PHP_EOL; } echo ''; echo ''; } echo '