<?php
ob_start(); // Start output buffering

$ch = curl_init(); // Initialize cURL session

// Set the URL where you want to send the data
curl_setopt($ch, CURLOPT_URL, 'https://l...content-available-to-author-only...t.com/dash.php');

// Set cURL options for the POST request
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Return the response as a string
curl_setopt($ch, CURLOPT_POST, true); // Specify that this is a POST request

// Create an associative array with the data you want to send
$data = [
    'username' => 'test_user', // Example username
    'password' => 'test_pass'   // Example password
];

// Attach the data to the POST fields
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));

// Execute the request and capture the response
$response = curl_exec($ch);

// Check for errors
if (curl_errno($ch)) {
    echo 'cURL Error: ' . curl_error($ch);
} else {
    echo 'Response from server: ' . $response; // Print the response from the server
}

// Close the cURL session
curl_close($ch);
?>
