Php script throwing Bad request Error
<p>I am using this code to send message using Fowiz but this is throwing a Bad Request error BUt doesnt show 400 .Any help please.  </p>

<pre><code>&lt;?php
        $mypasscode = 'your passcode';
        $my_username = 'your fowiz username';    
        $to_phone_number = 'recipient phone number';
        $my_message = 'your message';

        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, 
            "http://cloud.fowiz.com/api/message_http_api.php");
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query(array(
            'username' =&gt; $my_username,
            'phonenumber' =&gt; $to_phone_number,
            'message' =&gt; $my_message,
            'passcode' =&gt; $my_passcode,
        ), '', '&amp;'));        

        $result = curl_exec($curl);    
        $error = curl_error($curl);    
        curl_close($curl);    

        echo $result;
    ?&gt;
</code></pre>