Connection completed till Linkpoint
<p>After connecting to link point i am unable to get the error messge that the transaction is wrong .What should i do in order to get that eror message.How to write response using curl
Actually i had wriiten curl function as given below</p>

<pre><code>                     $url='connection to link point';
          $port  = port number;
</code></pre>

<p>$fields = array('storename'=>urlencode('store number'),
                   'cardnumber'=>urlencode($row['cnumber']),
                   'cmonth'=>urlencode($row['cmonth']),
         'cyear'=>urlencode($row['cyear']),
                   'ctype'=>urlencode($row['ctype']),
                    'securitycode'=>urlencode($row['csecuritycode']),
        'chargetotal'=>urlencode($row['camount']),
          customer_ip'=>urlencode($_SERVER['REMOTE_ADDR']),
         '2000'=>urlencode('submit'),
        'ponumber'=>urlencode('1001'),
        'totalamount'=>urlencode($row['camount']),
         'txntype'=>urlencode('sale'),
         'txnmode'=>urlencode('live'),
        'mode'=>urlencode('payonly'),
        'od'=>urlencode($row['id1']),
        osCsid'=>urlencode($_GET['osCAdminID']) );  </p>

<pre><code> foreach($fields as $key=&gt;$value){  $fields_string .= $key.'='.$value.'&amp;'; 
              }
                 rtrim($fields_string,'&amp;');
          $ch = curl_init();
       curl_setopt($ch,CURLOPT_URL,$url);   
       curl_setopt($ch, CURLOPT_VERBOSE, 1);
       curl_setopt($ch, CURLOPT_POST, 1);  
       curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
       curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
       curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
     curl_setopt($ch,CURLOPT_POST,count($fields));              
       curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
                  $result = curl_exec($ch);
</code></pre>
