How to make a call to .aspx https from php script from my localhost with xamp?
<p>I am trying to send SMS from my localhost with xamp installed.
Requested page is on https and an .aspx page. 
I am getting error: "HTTP Error 400. The request is badly formed." or blank page only in some cases.
Detaisl is as follows :</p>

<pre><code>$url = 'https://www.ismartsms.net/iBulkSMS/HttpWS/SMSDynamicAPI.aspx';
$postArgs = 'UserId='.$username.
    '&amp;Password='.$password.
    '&amp;MobileNo='.$destination.
    '&amp;Message='.$text.
    '&amp;PushDateTime='.$PushDateTime.
    '&amp;Lang='.$Lang;
function getSslPage($url) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_HEADER, false);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_REFERER, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    $result = curl_exec($ch);
    curl_close($ch);
    return $result;
}
$response = getSslPage($all);

echo "&lt;pre&gt;";
print_r($response); exit;
</code></pre>

<p>I tried every possible solution/combination found on internet but could not resolve that. The API developers do not have a example for php script.
I tried httpful php library and file_get_contents function but getting empty page. Also tried every combination with curl_setup.</p>

<p>I need to call this url without any post data and see the response from it.
Instead getting a blank page.</p>

<p>Please note that when I execute the url with all details in browser it works fine.</p>

<p>Can anybody help me in this regard.</p>

<p>Thank you,
Usman</p>