Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
- //$url = 'http://localhost:10088/travelport_dev/smsxml.php';
- $url = "http://lambda.smsmedia.ug/travelport/index.php";
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
- $content=curl_exec($ch);
- $info = curl_getinfo($ch);
- $htt_code = $info['http_code'];
- curl_close($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement