title: Queries on Curl post- http code 500 error
body: <p>I am using <code>curl</code> post process in php to get the website page info as response. I am using the following code. </p>
  
  <pre><code>    $ch = curl_init();
      $_POST = array(
      'ddlBoro' =&gt; 'Manhattan',
      'txtHouseNo' =&gt; '2395',
      'txtStreet' =&gt;  '1 Ave',
      'RadioStrOrBlk'=&gt; 'Street',
      '__EVENTTARGET'=&gt; '',
      '__EVENTARGUMENT'=&gt; '',
      '_ctl0'=&gt;'_ctl0',
      'SearchButton' =&gt; 'Search'
      );
      $url= 'http://xxx/xx/test.aspx';
      curl_setopt ($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_HEADER, false);
      curl_setopt($ch, CURLOPT_POST, 1);
      curl_setopt($ch,CURLOPT_POSTFIELDS,$_POST);
      $response = curl_exec($ch);
      $info = curl_getinfo($ch);
      curl_close ($ch);
      echo("Results: &lt;br&gt;".$response);
      echo "&lt;pre&gt;info";print_r($info);echo "&lt;/pre&gt;";
  </code></pre>
  
  <p>but i always getting <code>http code 500</code> as curl info error.Can any one clarify this?</p>