MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/www/imenso.co/dev/twillio/index.php
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.twilio.com/2010-04-01/Accounts/ACd38e1aff748bd88ce76e41619cde0f70/Messages',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => array('To' => '+91919977808469','From' => '+16012733100','Body' => 'This is a test message'),
  CURLOPT_HTTPHEADER => array(
    'Authorization: Basic QUNkMzhlMWFmZjc0OGJkODhjZTc2ZTQxNjE5Y2RlMGY3MDphYzFiYTEwY2ExN2Q2N2E3YmIyMDliZDQwZjI0OTI5YQ=='
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;