Posted by shotokan99 on 06/08/07 07:31
this is how i handled this issue. is this a good approached?
=======================================
$xxml='
<?xml version="1.0" encoding="UTF-8"?>
<xxx>
<header>
<mtid> 101 </mtid>
</header>
<body>
<request>RVA</request>
<requestdetails>
<mobilephone>639191111111</mobilephone>
<PIN>111</PIN>
<password>mypassword</password>
<firstname>Firstname</firstname>
</requestdetails>
</body>
<footer>
<end>1</end>
</footer>
</xxx>
';
require_once 'HTTP/Request.php';
$xr=" https://mygateway.com";
$req = &new HTTP_Request($xr);
$req->setMethod(HTTP_REQUEST_METHOD_POST);
$req->addRawPostData($xxml);
$req->sendRequest();
echo nl2br(htmlentities($xxml));
echo "<p> </p>";
echo nl2br(htmlentities($req->getResponseBody()));
echo 'it works...';
Navigation:
[Reply to this message]
|