$_SESSION['username'], 'password' => $_SESSION['password], ]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://sma.lsm2019.com/login ' curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); $response = curl_exec($ch); print_r($response)