http response 200
Posted by: joaquinbordado (---.54.58.197.pldt.net)
Date: June 20, 2008 11:03AM

here is my code
when accessing this url
[localhost]

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Send SMS</title>
</head>
<body>

<?php
require_once('lib/nusoap.php');
$c = new soapclient('someclient');
$params = array('min'=>$_REQUEST['mobile'], 'msg'=>$_REQUEST['message'], 'id'=>'''id');
$status = $c->call('SENDSMS', $params );
echo $status;
?>
<br />
<br />
<?php
if ($status == "RETEMP02"winking smiley
echo "Mobile number is empty.";
elseif ($status == "RETEMP03"winking smiley
echo "Message is empty.";
elseif ($status == "RETEMP05"winking smiley
echo "Message Id is empty.";
elseif ($status == "RETVAL03"winking smiley
echo "Invalid mobile number.";
elseif ($status == "RETVAL04"winking smiley
echo "Mobile number not recognized.";
elseif ($status == "RETVAL05"winking smiley
echo "Message is containing illegal character.";
elseif ($status == ""winking smiley
echo "Message sending failed";
else
echo "Message has been sent successfully.";
// in this part i want to respond with a status of 200,sorry i just started php last wik
?>



Edited 1 time(s). Last edit at 06/20/2008 12:13PM by joaquinbordado.

Options: ReplyQuote
Re: http response 200
Posted by: toivo (---.nsw.bigpond.net.au)
Date: June 20, 2008 12:23PM

The browser looks after the request in the quiet mode: if the server succeeds in delivering the goods, the status code 200 can be found in the access log maintained by Apache, the browser receives the response and everyone is happy.

If you want to go beyond this, you may have to use javascript in an AJAX setup, inspect the response in detail and so on, but the browser already does this.

Regards,

toivo
Sydney, Australia

Options: ReplyQuote
Re: http response 200
Posted by: joaquinbordado (---.54.58.197.pldt.net)
Date: June 20, 2008 12:35PM

can you show me the way..im a total newbie in php just started las wik.

Options: ReplyQuote


Sorry, only registered users may post in this forum.