How to Send SMS using HTTP API in Php Code?

<?php
$xml_data ='<?xml version="1.0"?>
<parent>
<child>
<user>UR_USER</user>
<key>UR_KEY</key>
<mobile>9974984500</mobile>
<message>Test Message 1</message>
<accusage>2</accusage>
<senderid>alertp</senderid>
</child>
<child>
<user>UR_USER</user>
<key>UR_KEY</key>
<mobile>9974984500</mobile>
<message>Test Message 2</message>
<accusage>2</accusage>
<senderid>alertp</senderid>
</child>
</parent>';

$URL = "http://temp.91bulksms.com/submitsms.jsp?"; 

			$ch = curl_init($URL);
			curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
			curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
			curl_setopt($ch, CURLOPT_POST, 1);
			curl_setopt($ch, CURLOPT_ENCODING, 'UTF-8');
			curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/xml'));
			curl_setopt($ch, CURLOPT_POSTFIELDS, "$xml_data");
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
			$output = curl_exec($ch);
			curl_close($ch);

print_r($output); 
       
?>