title: Why am I getting a HTTP 400 bad request error?
body: <pre><code>&lt;?php
  $url ="http://absolutesms.com/Sendsms.aspx?userid=userid&amp;password=password&amp;clientid=clientid&amp;senderid=absolute&amp;mobilenumber=919000024365&amp;smsmessage=SingleMessage".$request;
  $ch = curl_init($url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  $curl_scraped_page = curl_exec($ch);
  curl_close($ch);
  echo $curl_scraped_page;
  ?&gt;
  </code></pre>
  
  <p>After running this code I am getting <code>HTTP Error 400. The request is badly formed</code>. What should I do? I tried other url they are working fine the only problem is with this.
  If I copy this url in browser it's working but it's giving error 400 when I put it and run it in curl. </p>