Skip to content

Instantly share code, notes, and snippets.

@rhapsodixx
Created May 24, 2014 07:42
Show Gist options
  • Save rhapsodixx/4a873b84fe6d249d53f2 to your computer and use it in GitHub Desktop.
Save rhapsodixx/4a873b84fe6d249d53f2 to your computer and use it in GitHub Desktop.
XML RPC Test RajaBiller
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://202.43.173.234/transaksi/" );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt($ch, CURLOPT_POST, 1 );
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, '<?xml version="1.0"?> <methodCall> <methodName>rajabiller.pulsa</methodName> <params> <param> <value><string>KODEPRODUK</string></value> </param> <param> <value><string>NOHP</string></value> </param> <param> <value><string>UID</string></value> </param> <param> <value><string>PIN</string></value> </param> <param> <value><string>REF1</string></value> </param> </params> </methodCall>' );
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/plain'));
$result=curl_exec ($ch);
print_r($result);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment