title: CURL 404 Error. on ajax function
body: <p>PHP:</p>
  
  <pre><code>$url = "http://www.smsidea.co.in/sendsms.aspx?mobile=9427362750&amp;pass=***&amp;senderid=SMSWEB&amp;to=".$data['mobile']."&amp;msg=".$data['message']."";
  $options = array(
      CURLOPT_RETURNTRANSFER =&gt; true,   // return web page
      CURLOPT_HEADER         =&gt; false,  // don't return headers
      CURLOPT_FOLLOWLOCATION =&gt; true,   // follow redirects
      CURLOPT_MAXREDIRS      =&gt; 10,     // stop after 10 redirects
      CURLOPT_ENCODING       =&gt; "",     // handle compressed
      CURLOPT_USERAGENT      =&gt; "test", // name of client
      CURLOPT_AUTOREFERER    =&gt; true,   // set referrer on redirect
      CURLOPT_CONNECTTIMEOUT =&gt; 120,    // time-out on connect
      CURLOPT_TIMEOUT        =&gt; 120,    // time-out on response
  ); 
  $ch = curl_init($url);
  curl_setopt_array($ch, $options);
  $content  = curl_exec($ch);
  curl_close($ch);
  </code></pre>
  
  <p>Ajax:</p>
  
  <pre><code>$.ajax({
            type: "POST",
            url: "http://www.kakaproperty.com/Property/send_message",
            data: data,
            success: function(response){
              alert(response);
            }
          })
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"&gt;
  &lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;Bad Request&lt;/TITLE&gt;
  &lt;META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"&gt;&lt;/HEAD&gt;
  &lt;BODY&gt;&lt;h2&gt;Bad Request&lt;/h2&gt;
  &lt;hr&gt;&lt;p&gt;HTTP Error 400. The request is badly formed.&lt;/p&gt;
  &lt;/BODY&gt;&lt;/HTML&gt;
  </code></pre>
  
  <p>I am using CRUL with ajax function. but it returning error 400 Bad Request anyone can please help me how can I resolve this error.</p>